Open CASCADE Technology  6.9.0
Public Member Functions

OpenGl_Utils::MatrixState< T > Class Template Reference

Software implementation for OpenGL matrix stack. More...

#include <OpenGl_Utils.hxx>

Public Member Functions

 MatrixState ()
 Constructs matrix state object. More...
 
void Push ()
 Pushes current matrix into stack. More...
 
void Pop ()
 Pops matrix from stack to current. More...
 
const MatrixType< T >::Mat4 & Current ()
 
void SetCurrent (const typename MatrixType< T >::Mat4 &theNewCurrent)
 Sets given matrix as current. More...
 
template<typename Other_t >
void SetCurrent (const typename MatrixType< Other_t >::Mat4 &theNewCurrent)
 Sets given matrix as current. More...
 
void SetIdentity ()
 Sets current matrix to identity. More...
 

Detailed Description

template<class T>
class OpenGl_Utils::MatrixState< T >

Software implementation for OpenGL matrix stack.

Constructor & Destructor Documentation

template<class T>
OpenGl_Utils::MatrixState< T >::MatrixState ( )
inline

Constructs matrix state object.

Member Function Documentation

template<class T>
const MatrixType<T>::Mat4& OpenGl_Utils::MatrixState< T >::Current ( )
inline
Returns
current matrix.
template<class T>
void OpenGl_Utils::MatrixState< T >::Pop ( )
inline

Pops matrix from stack to current.

template<class T>
void OpenGl_Utils::MatrixState< T >::Push ( )
inline

Pushes current matrix into stack.

template<class T>
void OpenGl_Utils::MatrixState< T >::SetCurrent ( const typename MatrixType< T >::Mat4 &  theNewCurrent)
inline

Sets given matrix as current.

template<class T>
template<typename Other_t >
void OpenGl_Utils::MatrixState< T >::SetCurrent ( const typename MatrixType< Other_t >::Mat4 &  theNewCurrent)
inline

Sets given matrix as current.

template<class T>
void OpenGl_Utils::MatrixState< T >::SetIdentity ( )
inline

Sets current matrix to identity.


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