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 <modules/opengl/openglutils.h>

Public Member Functions

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

Protected Attributes

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

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:
  • modules/opengl/include/modules/opengl/openglutils.h