9 #ifndef GlobeEngine_SceneStateSet_h
10 #define GlobeEngine_SceneStateSet_h
12 #include "OpenGL_Includes.h"
14 #include <vmmlib/vmmlib.hpp>
108 void enableColorMask(GLboolean _r = GL_TRUE, GLboolean _g = GL_TRUE, GLboolean _b = GL_TRUE, GLboolean _a = GL_TRUE);
109 void disableColorMask(GLboolean _r = GL_FALSE, GLboolean _g = GL_FALSE, GLboolean _b = GL_FALSE, GLboolean _a = GL_FALSE);
124 void switchPolygonOffsetMode(GLenum _mode,
bool _enabled);
129 bool blendingEnabled;
131 bool polygonOffsetModePoint;
132 bool polygonOffsetModeLine;
133 bool polygonOffsetModeFill;
136 GLenum faceCullingMode;
137 GLenum frontfaceMode;
141 GLenum depthFunction;
142 double depthNearValue;
143 double depthFarValue;
146 GLenum blendSourceFactor;
147 GLenum blendDestinationFactor;
159 vmml::Vector4f clearColor;
161 vmml::Vector3f backgroundColor;
void changeFrontFaceMode(GLenum _mode)
Definition: SceneStateSet.cpp:132
void setDepthTestEnabled(bool _in)
Definition: SceneStateSet.cpp:150
void disableLineSmooth()
Definition: SceneStateSet.cpp:181
void disableColorMask(GLboolean _r=GL_FALSE, GLboolean _g=GL_FALSE, GLboolean _b=GL_FALSE, GLboolean _a=GL_FALSE)
Definition: SceneStateSet.cpp:297
void enableDepthMask()
Definition: SceneStateSet.cpp:275
void closeMatrixStack()
Definition: SceneStateSet.cpp:322
~SceneStateSet()
Definition: SceneStateSet.cpp:16
void print()
Definition: SceneStateSet.cpp:119
GLint reference
Definition: SceneStateSet.h:19
void disableDepthMask()
Definition: SceneStateSet.cpp:281
GLenum fail
Definition: SceneStateSet.h:24
void disableStencilTest()
Definition: SceneStateSet.cpp:239
Definition: SceneStateSet.h:17
void enableLineSmooth()
Definition: SceneStateSet.cpp:173
Definition: SceneStateSet.h:29
void apply()
Definition: SceneStateSet.cpp:83
void setPolygonOffset(float _factor=0, float _units=0)
Definition: SceneStateSet.cpp:228
void clear()
Definition: SceneStateSet.cpp:21
void disablePolygonOffsetMode(GLenum _mode)
Definition: SceneStateSet.cpp:202
void setStencilOperation(GLenum _fail, GLenum _zfail, GLenum _zpass)
Definition: SceneStateSet.cpp:314
Definition: SceneStateSet.h:33
void applyWithOutClear()
Definition: SceneStateSet.cpp:89
void clearFramebuffer()
Definition: SceneStateSet.cpp:69
vmml::Vector3f getBackgroundColor()
Definition: SceneStateSet.cpp:353
void enableDepthTest(GLenum _function)
Definition: SceneStateSet.cpp:155
void disableDepthTest()
Definition: SceneStateSet.cpp:167
GLuint mask
Definition: SceneStateSet.h:20
GLint clearValue
Definition: SceneStateSet.h:30
void enableStencilTest()
Definition: SceneStateSet.cpp:233
void applyBlending()
Definition: SceneStateSet.cpp:265
GLenum zpass
Definition: SceneStateSet.h:26
void enableColorMask(GLboolean _r=GL_TRUE, GLboolean _g=GL_TRUE, GLboolean _b=GL_TRUE, GLboolean _a=GL_TRUE)
Definition: SceneStateSet.cpp:288
void setPolygonMode(GLenum _mode)
Definition: SceneStateSet.cpp:330
void enableBlending()
Definition: SceneStateSet.cpp:252
GLboolean green
Definition: SceneStateSet.h:35
GLboolean blue
Definition: SceneStateSet.h:36
void changeCullMode(GLenum _mode)
Definition: SceneStateSet.cpp:138
GLboolean red
Definition: SceneStateSet.h:34
GLboolean alpha
Definition: SceneStateSet.h:37
void changeDepthFunction(GLenum _function)
Definition: SceneStateSet.cpp:161
void setLineWidth(float _width)
Definition: SceneStateSet.cpp:188
Definition: AvalancheTrainingSimulationEngine.h:28
void enableCullFaces(GLenum _mode=GL_BACK)
Definition: SceneStateSet.cpp:124
Definition: SceneStateSet.h:41
SceneStateSet()
Definition: SceneStateSet.cpp:11
GLenum zfail
Definition: SceneStateSet.h:25
void setStencilClearValue(GLint _in)
Definition: SceneStateSet.cpp:270
void setDepthRange(double _near, double _far)
Definition: SceneStateSet.cpp:344
void setBackgroundColor(vmml::Vector3f _color)
Definition: SceneStateSet.cpp:358
void setBlendFunction(GLenum _sfactor, GLenum _dfactor)
Definition: SceneStateSet.cpp:245
void createBasicStateSet(std::string _name)
Definition: SceneStateSet.cpp:55
void disableBlending()
Definition: SceneStateSet.cpp:259
Definition: SceneStateSet.h:23
void enablePolygonOffsetMode(GLenum _mode)
Definition: SceneStateSet.cpp:196
void disableCullFaces()
Definition: SceneStateSet.cpp:144
void setStencilFunction(GLenum _function, GLint _reference, GLuint _mask)
Definition: SceneStateSet.cpp:306