scg3  0.6
scg::MatrixStack Class Reference

Matrix stack to store model-view, projection, texture, and color matrices, used by RenderState. More...

#include "RenderState.h"

Collaboration diagram for scg::MatrixStack:
[legend]

Public Member Functions

 MatrixStack ()
 
const glm::mat4 & getMatrix () const
 
void setMatrix (const glm::mat4 &matrix)
 
void setIdentity ()
 
void pushMatrix ()
 
void pushMatrix (const glm::mat4 &matrix)
 
void popMatrix ()
 
void multMatrix (const glm::mat4 &matrix)
 

Protected Attributes

std::stack< glm::mat4 > stack_
 

Detailed Description

Matrix stack to store model-view, projection, texture, and color matrices, used by RenderState.

The member functions are defined in the header file to allow inlining.

Definition at line 47 of file RenderState.h.

Constructor & Destructor Documentation

◆ MatrixStack()

scg::MatrixStack::MatrixStack ( )
inline

Definition at line 51 of file RenderState.h.

Member Function Documentation

◆ getMatrix()

const glm::mat4& scg::MatrixStack::getMatrix ( ) const
inline

Definition at line 55 of file RenderState.h.

◆ multMatrix()

void scg::MatrixStack::multMatrix ( const glm::mat4 &  matrix)
inline

Definition at line 84 of file RenderState.h.

◆ popMatrix()

void scg::MatrixStack::popMatrix ( )
inline

Definition at line 79 of file RenderState.h.

◆ pushMatrix() [1/2]

void scg::MatrixStack::pushMatrix ( )
inline

Definition at line 70 of file RenderState.h.

◆ pushMatrix() [2/2]

void scg::MatrixStack::pushMatrix ( const glm::mat4 &  matrix)
inline

Definition at line 75 of file RenderState.h.

◆ setIdentity()

void scg::MatrixStack::setIdentity ( )
inline

Definition at line 65 of file RenderState.h.

◆ setMatrix()

void scg::MatrixStack::setMatrix ( const glm::mat4 &  matrix)
inline

Definition at line 60 of file RenderState.h.

Member Data Documentation

◆ stack_

std::stack<glm::mat4> scg::MatrixStack::stack_
protected

Definition at line 91 of file RenderState.h.


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