Open CASCADE Technology  7.7.0
Public Member Functions
OpenGl_MatrixState< T > Class Template Reference

Software implementation for OpenGL matrix stack. More...

#include <OpenGl_MatrixState.hxx>

Public Member Functions

 OpenGl_MatrixState ()
 Constructs matrix state object. More...
 
void Push ()
 Pushes current matrix into stack. More...
 
void Pop ()
 Pops matrix from stack to current. More...
 
const OpenGl::MatrixType< T >::Mat4 & Current ()
 
void SetCurrent (const typename OpenGl::MatrixType< T >::Mat4 &theNewCurrent)
 Sets given matrix as current. More...
 
OpenGl::MatrixType< T >::Mat4 & ChangeCurrent ()
 Change current matrix. More...
 
template<typename Other_t >
void SetCurrent (const typename OpenGl::MatrixType< Other_t >::Mat4 &theNewCurrent)
 Sets given matrix as current. More...
 
void SetIdentity ()
 Sets current matrix to identity. More...
 
void DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const
 Dumps the content of me into the stream. More...
 

Detailed Description

template<class T>
class OpenGl_MatrixState< T >

Software implementation for OpenGL matrix stack.

Constructor & Destructor Documentation

◆ OpenGl_MatrixState()

template<class T>
OpenGl_MatrixState< T >::OpenGl_MatrixState ( )
inline

Constructs matrix state object.

Member Function Documentation

◆ ChangeCurrent()

template<class T>
OpenGl::MatrixType<T>::Mat4& OpenGl_MatrixState< T >::ChangeCurrent ( )
inline

Change current matrix.

◆ Current()

template<class T>
const OpenGl::MatrixType<T>::Mat4& OpenGl_MatrixState< T >::Current ( )
inline
Returns
current matrix.

◆ DumpJson()

template<class T>
void OpenGl_MatrixState< T >::DumpJson ( Standard_OStream theOStream,
Standard_Integer  theDepth = -1 
) const
inline

Dumps the content of me into the stream.

◆ Pop()

template<class T>
void OpenGl_MatrixState< T >::Pop ( )
inline

Pops matrix from stack to current.

◆ Push()

template<class T>
void OpenGl_MatrixState< T >::Push ( )
inline

Pushes current matrix into stack.

◆ SetCurrent() [1/2]

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

Sets given matrix as current.

◆ SetCurrent() [2/2]

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

Sets given matrix as current.

◆ SetIdentity()

template<class T>
void OpenGl_MatrixState< T >::SetIdentity ( )
inline

Sets current matrix to identity.


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