Inviwo  0.9.10.1
Inviwo documentation
inviwo::utilgl::CullFaceState Struct Reference

RAII object for OpenGL cull face state, which enables GL_CULL_FACE if mode is different from GL_NONE. More...

#include <openglutils.h>

+ Inheritance diagram for inviwo::utilgl::CullFaceState:

Public Member Functions

 CullFaceState (CullFaceState const &)=delete
 
CullFaceStateoperator= (CullFaceState const &that)=delete
 
 CullFaceState (GLint mode)
 
 CullFaceState (CullFaceState &&rhs)
 
CullFaceStateoperator= (CullFaceState &&that)
 
GLint getMode ()
 
- 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 mode_
 
GLint oldMode_
 
- Protected Attributes inherited from inviwo::utilgl::GlBoolState
GLenum target_
 
bool oldState_
 
bool state_
 

Detailed Description

RAII object for OpenGL cull face state, which enables GL_CULL_FACE if mode is different from GL_NONE.

RAII object for OpenGL polygon mode as well as line width and point size Will set the polygon mode for GL_FRONT_AND_BACK since this is the only mode supported by the OpenGL core profile.

See also
glCullFace, GL_CULL_FACE
glPolygonMode, glPointSize, glLineWidth

The documentation for this struct was generated from the following files: