GlobeEngine
ge::SceneStateSet Class Reference

#include <SceneStateSet.h>

Public Member Functions

 SceneStateSet ()
 
 ~SceneStateSet ()
 
void clear ()
 
void createBasicStateSet (std::string _name)
 
void apply ()
 
void applyWithOutClear ()
 
void print ()
 
void setPolygonMode (GLenum _mode)
 
void enableCullFaces (GLenum _mode=GL_BACK)
 
void changeCullMode (GLenum _mode)
 
void changeFrontFaceMode (GLenum _mode)
 
void disableCullFaces ()
 
void enableDepthMask ()
 
void disableDepthMask ()
 
void setDepthTestEnabled (bool _in)
 
void enableDepthTest (GLenum _function)
 
void changeDepthFunction (GLenum _function)
 
void disableDepthTest ()
 
void setDepthRange (double _near, double _far)
 
void closeMatrixStack ()
 
void enableLineSmooth ()
 
void disableLineSmooth ()
 
void setLineWidth (float _width)
 
void setPolygonOffset (float _factor=0, float _units=0)
 
void enablePolygonOffsetMode (GLenum _mode)
 
void disablePolygonOffsetMode (GLenum _mode)
 
void enableStencilTest ()
 
void disableStencilTest ()
 
void setStencilFunction (GLenum _function, GLint _reference, GLuint _mask)
 
void setStencilOperation (GLenum _fail, GLenum _zfail, GLenum _zpass)
 
void setStencilClearValue (GLint _in)
 
void enableColorMask (GLboolean _r=GL_TRUE, GLboolean _g=GL_TRUE, GLboolean _b=GL_TRUE, GLboolean _a=GL_TRUE)
 
void disableColorMask (GLboolean _r=GL_FALSE, GLboolean _g=GL_FALSE, GLboolean _b=GL_FALSE, GLboolean _a=GL_FALSE)
 
void setBlendFunction (GLenum _sfactor, GLenum _dfactor)
 
void enableBlending ()
 
void disableBlending ()
 
void applyBlending ()
 
vmml::Vector3f getBackgroundColor ()
 
void setBackgroundColor (vmml::Vector3f _color)
 
void clearFramebuffer ()
 

Constructor & Destructor Documentation

ge::SceneStateSet::SceneStateSet ( )
ge::SceneStateSet::~SceneStateSet ( )

Member Function Documentation

void ge::SceneStateSet::apply ( )
void ge::SceneStateSet::applyBlending ( )
void ge::SceneStateSet::applyWithOutClear ( )
void ge::SceneStateSet::changeCullMode ( GLenum  _mode)
void ge::SceneStateSet::changeDepthFunction ( GLenum  _function)
void ge::SceneStateSet::changeFrontFaceMode ( GLenum  _mode)
void ge::SceneStateSet::clear ( )
void ge::SceneStateSet::clearFramebuffer ( )
void ge::SceneStateSet::closeMatrixStack ( )
void ge::SceneStateSet::createBasicStateSet ( std::string  _name)
void ge::SceneStateSet::disableBlending ( )
void ge::SceneStateSet::disableColorMask ( GLboolean  _r = GL_FALSE,
GLboolean  _g = GL_FALSE,
GLboolean  _b = GL_FALSE,
GLboolean  _a = GL_FALSE 
)
void ge::SceneStateSet::disableCullFaces ( )
void ge::SceneStateSet::disableDepthMask ( )
void ge::SceneStateSet::disableDepthTest ( )
void ge::SceneStateSet::disableLineSmooth ( )
void ge::SceneStateSet::disablePolygonOffsetMode ( GLenum  _mode)
void ge::SceneStateSet::disableStencilTest ( )
void ge::SceneStateSet::enableBlending ( )
void ge::SceneStateSet::enableColorMask ( GLboolean  _r = GL_TRUE,
GLboolean  _g = GL_TRUE,
GLboolean  _b = GL_TRUE,
GLboolean  _a = GL_TRUE 
)
void ge::SceneStateSet::enableCullFaces ( GLenum  _mode = GL_BACK)
void ge::SceneStateSet::enableDepthMask ( )
void ge::SceneStateSet::enableDepthTest ( GLenum  _function)
void ge::SceneStateSet::enableLineSmooth ( )

enable / disable line smooth options This feature has no impact on OSX Systems.

void ge::SceneStateSet::enablePolygonOffsetMode ( GLenum  _mode)

enable/disable PolygonOffsetMode

Parameters
mode- GL_POLYGON_OFFSET_FILL GL_POLYGON_OFFSET_LINE GL_POLYGON_OFFSET_POINT
void ge::SceneStateSet::enableStencilTest ( )
vmml::Vector3f ge::SceneStateSet::getBackgroundColor ( )
void ge::SceneStateSet::print ( )
void ge::SceneStateSet::setBackgroundColor ( vmml::Vector3f  _color)
void ge::SceneStateSet::setBlendFunction ( GLenum  _sfactor,
GLenum  _dfactor 
)
void ge::SceneStateSet::setDepthRange ( double  _near,
double  _far 
)
void ge::SceneStateSet::setDepthTestEnabled ( bool  _in)
void ge::SceneStateSet::setLineWidth ( float  _width)

set line width. No impact on OSX Systems, because line width is always 1.0.

Parameters
width- typically between 0.0 and 10.0 with steps 0.25
void ge::SceneStateSet::setPolygonMode ( GLenum  _mode)
void ge::SceneStateSet::setPolygonOffset ( float  _factor = 0,
float  _units = 0 
)

setPolygonOffset

Parameters
factor- the factor by which the polygon is moved
factor- applications specific units if necessary
void ge::SceneStateSet::setStencilClearValue ( GLint  _in)
void ge::SceneStateSet::setStencilFunction ( GLenum  _function,
GLint  _reference,
GLuint  _mask 
)
void ge::SceneStateSet::setStencilOperation ( GLenum  _fail,
GLenum  _zfail,
GLenum  _zpass 
)

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