Inviwo  0.9.10.1
Inviwo documentation
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:

Public Member Functions

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

Protected Attributes

GLint smode_
 
GLint dmode_
 
GLint oldsMode_
 
GLint olddMode_
 
- Protected Attributes inherited from inviwo::utilgl::GlBoolState
GLenum target_
 
bool oldState_
 
bool state_
 

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 files: