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 <openglutils.h>

+ Inheritance diagram for inviwo::utilgl::BlendModeState:

Classes

struct  Config
 
struct  Mode
 

Public Member Functions

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

Protected Attributes

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

Additional Inherited Members

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

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: