PS2GL
OpenGL*-like API for the PS2
Loading...
Searching...
No Matches
CDListGeomManager Class Reference
+ Inheritance diagram for CDListGeomManager:
+ Collaboration diagram for CDListGeomManager:

Public Member Functions

 CDListGeomManager (CGLContext &context)
 
void PrimChanged (GLenum prim)
 
void EnableCustom (tU64 flag)
 
void DisableCustom (tU64 flag)
 
void SetUserRenderContextChanged ()
 
void BeginDListDef ()
 
void EndDListDef ()
 
void BeginGeom (GLenum mode)
 
void Vertex (cpu_vec_xyzw newVert)
 
void Normal (cpu_vec_xyz normal)
 
void TexCoord (float u, float v)
 
void Color (cpu_vec_xyzw color)
 
void EndGeom ()
 
void DrawArrays (GLenum mode, int first, int count)
 
void DrawIndexedArrays (GLenum primType, int numIndices, const unsigned char *indices, int numVertices)
 
void Flush ()
 
- Public Member Functions inherited from CGeomManager
 CGeomManager (CGLContext &context)
 
void SetUserRenderContextChanged ()
 
cpu_vec_xyz GetCurNormal () const
 
void SetCurNormal (cpu_vec_xyz normal)
 
const float * GetCurTexCoord () const
 
void SetCurTexCoord (float u, float v)
 
void SetDoNormalize (bool normalize)
 
CVertArrayGetVertArray ()
 

Private Member Functions

void DrawBlock (CGeometryBlock &block)
 
void CommitNewGeom ()
 
void DrawingIndexedArray ()
 
void DrawingLinearArray ()
 

Private Attributes

CDmaPacket * CurVertexBuf
 
CDmaPacket * CurNormalBuf
 
CDmaPacket * CurTexCoordBuf
 
CDmaPacket * CurColorBuf
 
CDListCurDList
 
CGeometryBlock Geometry
 
bool RendererMayHaveChanged
 

Additional Inherited Members

- Static Public Member Functions inherited from CGeomManager
static bool IsUserPrimType (unsigned int prim)
 
static void RegisterUserPrimType (GLenum prim, tU64 requirements, tU64 rendererReqMask, bool mergeContiguous)
 
static tU64 GetUserPrimRequirements (GLenum prim)
 
static bool GetUserPrimMerge (GLenum prim)
 
static tU64 GetUserPrimReqMask (GLenum prim)
 
- Static Protected Member Functions inherited from CGeomManager
static void CheckPrimAccess (GLenum prim)
 
- Protected Attributes inherited from CGeomManager
CGLContextGLContext
 
cpu_vec_xyz CurNormal
 
float CurTexCoord [2]
 
GLenum Prim
 
bool InsideBeginEnd
 
bool LastArrayAccessWasIndexed
 
bool LastArrayAccessIsValid
 
bool UserRenderContextChanged
 
- Static Protected Attributes inherited from CGeomManager
static CVertArrayVertArray
 
static const unsigned int kMaxUserPrimTypes = PGL_MAX_CUSTOM_PRIM_TYPES
 
static tUserPrimEntry UserPrimTypes [kMaxUserPrimTypes]
 
static bool DoNormalize = false
 

Detailed Description

Definition at line 18 of file dlgmanager.h.

Constructor & Destructor Documentation

◆ CDListGeomManager()

CDListGeomManager::CDListGeomManager ( CGLContext context)

Definition at line 25 of file dlgmanager.cpp.

◆ ~CDListGeomManager()

virtual CDListGeomManager::~CDListGeomManager ( )
inlinevirtual

Definition at line 35 of file dlgmanager.h.

Member Function Documentation

◆ DrawBlock()

void CDListGeomManager::DrawBlock ( CGeometryBlock block)
private

Definition at line 672 of file dlgmanager.cpp.

◆ CommitNewGeom()

void CDListGeomManager::CommitNewGeom ( )
private

Definition at line 412 of file dlgmanager.cpp.

◆ DrawingIndexedArray()

void CDListGeomManager::DrawingIndexedArray ( )
private

Definition at line 403 of file dlgmanager.cpp.

◆ DrawingLinearArray()

void CDListGeomManager::DrawingLinearArray ( )
private

Definition at line 394 of file dlgmanager.cpp.

◆ PrimChanged()

void CDListGeomManager::PrimChanged ( GLenum  prim)

Definition at line 355 of file dlgmanager.cpp.

◆ EnableCustom()

void CDListGeomManager::EnableCustom ( tU64  flag)
virtual

Implements CGeomManager.

Definition at line 695 of file dlgmanager.cpp.

◆ DisableCustom()

void CDListGeomManager::DisableCustom ( tU64  flag)
virtual

Implements CGeomManager.

Definition at line 715 of file dlgmanager.cpp.

◆ SetUserRenderContextChanged()

void CDListGeomManager::SetUserRenderContextChanged ( )
inline

Definition at line 44 of file dlgmanager.h.

◆ BeginDListDef()

void CDListGeomManager::BeginDListDef ( )

Definition at line 32 of file dlgmanager.cpp.

◆ EndDListDef()

void CDListGeomManager::EndDListDef ( )

Definition at line 43 of file dlgmanager.cpp.

◆ BeginGeom()

void CDListGeomManager::BeginGeom ( GLenum  mode)
virtual

Implements CGeomManager.

Definition at line 67 of file dlgmanager.cpp.

◆ Vertex()

void CDListGeomManager::Vertex ( cpu_vec_xyzw  newVert)
virtual

Implements CGeomManager.

Definition at line 88 of file dlgmanager.cpp.

◆ Normal()

void CDListGeomManager::Normal ( cpu_vec_xyz  normal)
virtual

Implements CGeomManager.

Definition at line 110 of file dlgmanager.cpp.

◆ TexCoord()

void CDListGeomManager::TexCoord ( float  u,
float  v 
)
virtual

Implements CGeomManager.

Definition at line 176 of file dlgmanager.cpp.

◆ Color()

void CDListGeomManager::Color ( cpu_vec_xyzw  color)
virtual

Implements CGeomManager.

Definition at line 147 of file dlgmanager.cpp.

◆ EndGeom()

void CDListGeomManager::EndGeom ( )
virtual

Implements CGeomManager.

Definition at line 192 of file dlgmanager.cpp.

◆ DrawArrays()

void CDListGeomManager::DrawArrays ( GLenum  mode,
int  first,
int  count 
)
virtual

Implements CGeomManager.

Definition at line 250 of file dlgmanager.cpp.

◆ DrawIndexedArrays()

void CDListGeomManager::DrawIndexedArrays ( GLenum  primType,
int  numIndices,
const unsigned char *  indices,
int  numVertices 
)
virtual

Implements CGeomManager.

Definition at line 283 of file dlgmanager.cpp.

◆ Flush()

void CDListGeomManager::Flush ( )
virtual

Implements CGeomManager.

Definition at line 55 of file dlgmanager.cpp.

Field Documentation

◆ CurVertexBuf

CDmaPacket* CDListGeomManager::CurVertexBuf
private

Definition at line 20 of file dlgmanager.h.

◆ CurNormalBuf

CDmaPacket * CDListGeomManager::CurNormalBuf
private

Definition at line 20 of file dlgmanager.h.

◆ CurTexCoordBuf

CDmaPacket * CDListGeomManager::CurTexCoordBuf
private

Definition at line 20 of file dlgmanager.h.

◆ CurColorBuf

CDmaPacket * CDListGeomManager::CurColorBuf
private

Definition at line 20 of file dlgmanager.h.

◆ CurDList

CDList* CDListGeomManager::CurDList
private

Definition at line 22 of file dlgmanager.h.

◆ Geometry

CGeometryBlock CDListGeomManager::Geometry
private

Definition at line 23 of file dlgmanager.h.

◆ RendererMayHaveChanged

bool CDListGeomManager::RendererMayHaveChanged
private

Definition at line 25 of file dlgmanager.h.


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