RenderTools::Matrix Namespace Reference


Enumerations

enum  Mode { PROJECTION = 0, MODELVIEW = 1, TEXTURE = 2 }

Functions

void _setMatrixUniform (void)
 ES|1.0 is the only configuration without programs.
void _matrixMode (Mode mode)
void _pushMatrix (void)
void _popMatrix (void)
void _loadMatrix (const GLfloat *p)
void initialize ()
const Mat4get (Mode mode)
void set (Mode mode, const Mat4 &m)
void push (Mode mode, const Mat4 &m)
void push (Mode mode)
Mat4 pop (Mode mode)
Vec3 project (const Vec3 &object, const Vec4 &viewport)
Vec3 unProject (const Vec3 &window, const Vec4 &viewport)

Variables

vector< Mat4stack [3]

Enumeration Type Documentation

Enumerator:
PROJECTION 
MODELVIEW 
TEXTURE 

Definition at line 482 of file Matrix.h.


Function Documentation

void RenderTools::Matrix::_loadMatrix ( const GLfloat *  p  ) 

Definition at line 2542 of file Matrix.cpp.

void RenderTools::Matrix::_matrixMode ( Mode  mode  ) 

ES|2.0 is the only configuration without fixed function TODO: follow deprecation model and allow for compatibility mode

Definition at line 2527 of file Matrix.cpp.

void RenderTools::Matrix::_popMatrix ( void   ) 

Definition at line 2541 of file Matrix.cpp.

void RenderTools::Matrix::_pushMatrix ( void   ) 

Definition at line 2540 of file Matrix.cpp.

void RenderTools::Matrix::_setMatrixUniform ( void   ) 

ES|1.0 is the only configuration without programs.

Definition at line 2511 of file Matrix.cpp.

const Mat4 & RenderTools::Matrix::get ( Mode  mode  ) 

Definition at line 2581 of file Matrix.cpp.

void RenderTools::Matrix::initialize (  ) 

load the stacks with identity

Definition at line 2557 of file Matrix.cpp.

Mat4 RenderTools::Matrix::pop ( Mode  mode  ) 

pop the stack

allow for fixed function matrix mode

allow for fixed-function pop

allow for program uniform

and return

Definition at line 2649 of file Matrix.cpp.

Vec3 RenderTools::Matrix::project ( const Vec3 &  object,
const Vec4 &  viewport 
)

Definition at line 2676 of file Matrix.cpp.

void RenderTools::Matrix::push ( Mode  mode  ) 

push-copy the top of the stack if no matrix is given.

if empty, store Identity

allow for fixed function matrix mode

allow for fixed-function push

allow for program uniform

Definition at line 2628 of file Matrix.cpp.

void RenderTools::Matrix::push ( Mode  mode,
const Mat4 &  m 
)

keep the stack up-to-date internally

allow for fixed function matrix mode

allow for fixed-function push

then load fixed-function

allow for program uniform

Definition at line 2611 of file Matrix.cpp.

void RenderTools::Matrix::set ( Mode  mode,
const Mat4 &  m 
)

allow for fixed function matrix mode

load fixed-function

allow for program uniform

Definition at line 2592 of file Matrix.cpp.

Vec3 RenderTools::Matrix::unProject ( const Vec3 &  window,
const Vec4 &  viewport 
)

Definition at line 2689 of file Matrix.cpp.


Variable Documentation

Definition at line 2506 of file Matrix.cpp.


Generated on Wed Jan 26 00:15:37 2011 for RenderTools by  doxygen 1.5.8