Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

CMatrixStack Class Reference

#include <matrix.h>

Inheritance diagram for CMatrixStack::

CDListMatrixStack CImmMatrixStack List of all members.

Public Methods

 CMatrixStack (CGLContext &context)
virtual void Pop ()=0
virtual void Push ()=0
virtual void Concat (const cpu_mat_44 &xform, const cpu_mat_44 &inverse)=0
virtual void SetTop (const cpu_mat_44 &newMat, const cpu_mat_44 &newInv)=0

Protected Attributes

CGLContextGLContext
cpu_mat_44 Matrices [MaxStackDepth]
cpu_mat_44 InverseMatrices [MaxStackDepth]
int CurStackDepth

Static Protected Attributes

const int MaxStackDepth = 16

Constructor & Destructor Documentation

CMatrixStack::CMatrixStack ( CGLContext & context ) [inline]
 

Definition at line 28 of file matrix.h.


Member Function Documentation

void CMatrixStack::Concat ( const cpu_mat_44 & xform,
const cpu_mat_44 & inverse ) [pure virtual]
 

Reimplemented in CImmMatrixStack, and CDListMatrixStack.

Referenced by glFrustum(), glMultMatrixf(), glRotatef(), glScalef(), and glTranslatef().

void CMatrixStack::Pop ( ) [pure virtual]
 

Reimplemented in CImmMatrixStack, and CDListMatrixStack.

Referenced by glPopMatrix().

void CMatrixStack::Push ( ) [pure virtual]
 

Reimplemented in CImmMatrixStack, and CDListMatrixStack.

Referenced by glPushMatrix().

void CMatrixStack::SetTop ( const cpu_mat_44 & newMat,
const cpu_mat_44 & newInv ) [pure virtual]
 

Reimplemented in CImmMatrixStack, and CDListMatrixStack.

Referenced by glLoadIdentity(), and glLoadMatrixf().


Member Data Documentation

int CMatrixStack::CurStackDepth [protected]
 

Definition at line 25 of file matrix.h.

CGLContext & CMatrixStack::GLContext [protected]
 

Definition at line 22 of file matrix.h.

cpu_mat_44 CMatrixStack::InverseMatrices [protected]
 

Definition at line 24 of file matrix.h.

cpu_mat_44 CMatrixStack::Matrices [protected]
 

Definition at line 24 of file matrix.h.

const int CMatrixStack::MaxStackDepth = 16 [static, protected]
 

Definition at line 23 of file matrix.h.


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