29 #ifndef RENDERSTATE_H_ 30 #define RENDERSTATE_H_ 52 stack_.push(glm::mat4(1.0f));
67 stack_.top() = glm::mat4(1.0f);
void setLighting(bool isLightingEnabled)
A core to set a shader program to be applied to subsequent nodes.
std::stack< glm::mat4 > stack_
MatrixStack modelViewStack
const glm::mat4 & getMVPMatrix() const
Local header file for GLM OpenGL Mathematics library.
void setMatrix(const glm::mat4 &matrix)
const glm::mat4 & getModelMatrix() const
void multMatrix(const glm::mat4 &matrix)
MatrixStack projectionStack
void setViewTransform(const glm::mat4 &viewTransform)
void setColor(ColorCore *core)
const glm::mat4 & getMatrix() const
const glm::mat4 & getProjection() const
void setGlobalAmbientLight(const glm::vec4 &globalAmbientLight)
A core to set a vertex color or a color transformation to be applied to subsequent geometry.
Local header file for GLEW library.
glm::vec4 globalAmbientLight_
bool isLightingEnabled() const
const glm::mat4 & getViewTransform() const
The central render state that collects information about the current shader, transformations,...
GLuint getLightUBO() const
Internal definitions required by most classes.
void setShader(ShaderCore *core)
Matrix stack to store model-view, projection, texture, and color matrices, used by RenderState.
void pushMatrix(const glm::mat4 &matrix)
void setProjection(const glm::mat4 &projection)
void applyProjectionViewTransform()