Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::utilgl::BlendModeState Struct Reference

RAII object for OpenGL blending and blend mode, enables blending if source mode is different from GL_NONE. More...

#include <modules/opengl/openglutils.h>

Inheritance diagram for inviwo::utilgl::BlendModeState:

Classes

struct  Config
struct  Mode

Public Member Functions

 BlendModeState (BlendModeState &&rhs)
 BlendModeState (BlendModeState const &)=delete
 BlendModeState (GLenum srcMode, GLenum dstMode)
 BlendModeState (GLenum srcRGB, GLenum srcAlpha, GLenum dstRGB, GLenum dstAlpha)
BlendModeState & operator= (BlendModeState &&that)
BlendModeState & operator= (BlendModeState const &that)=delete

Protected Attributes

Config curr_
Config old_
Protected Attributes inherited from inviwo::utilgl::GlBoolState
bool oldState_
bool state_
GLenum target_

Additional Inherited Members

Protected Member Functions inherited from inviwo::utilgl::GlBoolState
 GlBoolState (GlBoolState &&rhs)
 GlBoolState (GlBoolState const &)=delete
 GlBoolState (GLenum target, bool state)
 operator bool ()
GlBoolState & operator= (GlBoolState &&that)
GlBoolState & operator= (GlBoolState const &that)=delete

Detailed Description

RAII object for OpenGL blending and blend mode, enables blending if source mode is different from GL_NONE.

See also
glBlendFunc, GL_BLEND

The documentation for this struct was generated from the following file:
  • modules/opengl/include/modules/opengl/openglutils.h