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

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. More...

#include <openglutils.h>

Public Member Functions

 PolygonModeState (GLenum mode, GLfloat lineWidth, GLfloat pointSize)
 
 PolygonModeState (PolygonModeState const &)=delete
 
PolygonModeStateoperator= (PolygonModeState const &that)=delete
 
 PolygonModeState (PolygonModeState &&rhs)
 
PolygonModeStateoperator= (PolygonModeState &&that)
 

Protected Attributes

GLint mode_
 
GLfloat lineWidth_
 
GLfloat pointSize_
 
GLint oldMode_
 
GLfloat oldLineWidth_
 
GLfloat oldPointSize_
 

Detailed Description

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
glPolygonMode, glPointSize, glLineWidth

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