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

Public Member Functions

 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 ()
 
virtual void EnableCustom (tU64 flag)=0
 
virtual void DisableCustom (tU64 flag)=0
 
virtual void BeginGeom (GLenum mode)=0
 
virtual void Vertex (cpu_vec_xyzw newVert)=0
 
virtual void Normal (cpu_vec_xyz normal)=0
 
virtual void TexCoord (float u, float v)=0
 
virtual void Color (cpu_vec_xyzw color)=0
 
virtual void EndGeom ()=0
 
virtual void DrawArrays (GLenum mode, int first, int count)=0
 
virtual void DrawIndexedArrays (GLenum primType, int numIndices, const unsigned char *indices, int numVertices)=0
 
virtual void Flush ()=0
 

Static Public Member Functions

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

static void CheckPrimAccess (GLenum prim)
 

Protected Attributes

CGLContextGLContext
 
cpu_vec_xyz CurNormal
 
float CurTexCoord [2]
 
GLenum Prim
 
bool InsideBeginEnd
 
bool LastArrayAccessWasIndexed
 
bool LastArrayAccessIsValid
 
bool UserRenderContextChanged
 

Static Protected Attributes

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 96 of file gmanager.h.

Constructor & Destructor Documentation

◆ CGeomManager()

CGeomManager::CGeomManager ( CGLContext context)

Definition at line 47 of file gmanager.cpp.

Member Function Documentation

◆ CheckPrimAccess()

static void CGeomManager::CheckPrimAccess ( GLenum  prim)
inlinestaticprotected

Definition at line 119 of file gmanager.h.

◆ IsUserPrimType()

static bool CGeomManager::IsUserPrimType ( unsigned int  prim)
inlinestatic

Definition at line 132 of file gmanager.h.

◆ RegisterUserPrimType()

static void CGeomManager::RegisterUserPrimType ( GLenum  prim,
tU64  requirements,
tU64  rendererReqMask,
bool  mergeContiguous 
)
inlinestatic

Definition at line 134 of file gmanager.h.

◆ GetUserPrimRequirements()

static tU64 CGeomManager::GetUserPrimRequirements ( GLenum  prim)
inlinestatic

Definition at line 146 of file gmanager.h.

◆ GetUserPrimMerge()

static bool CGeomManager::GetUserPrimMerge ( GLenum  prim)
inlinestatic

Definition at line 153 of file gmanager.h.

◆ GetUserPrimReqMask()

static tU64 CGeomManager::GetUserPrimReqMask ( GLenum  prim)
inlinestatic

Definition at line 160 of file gmanager.h.

◆ SetUserRenderContextChanged()

void CGeomManager::SetUserRenderContextChanged ( )
inline

Definition at line 167 of file gmanager.h.

◆ GetCurNormal()

cpu_vec_xyz CGeomManager::GetCurNormal ( ) const
inline

Definition at line 171 of file gmanager.h.

◆ SetCurNormal()

void CGeomManager::SetCurNormal ( cpu_vec_xyz  normal)
inline

Definition at line 172 of file gmanager.h.

◆ GetCurTexCoord()

const float * CGeomManager::GetCurTexCoord ( ) const
inline

Definition at line 174 of file gmanager.h.

◆ SetCurTexCoord()

void CGeomManager::SetCurTexCoord ( float  u,
float  v 
)
inline

Definition at line 175 of file gmanager.h.

◆ SetDoNormalize()

void CGeomManager::SetDoNormalize ( bool  normalize)
inline

Definition at line 182 of file gmanager.h.

◆ GetVertArray()

CVertArray & CGeomManager::GetVertArray ( )
inline

Definition at line 184 of file gmanager.h.

Field Documentation

◆ GLContext

CGLContext& CGeomManager::GLContext
protected

Definition at line 98 of file gmanager.h.

◆ VertArray

CVertArray * CGeomManager::VertArray
staticprotected

Definition at line 101 of file gmanager.h.

◆ kMaxUserPrimTypes

const unsigned int CGeomManager::kMaxUserPrimTypes = PGL_MAX_CUSTOM_PRIM_TYPES
staticprotected

Definition at line 103 of file gmanager.h.

◆ UserPrimTypes

tUserPrimEntry CGeomManager::UserPrimTypes
staticprotected

Definition at line 104 of file gmanager.h.

◆ CurNormal

cpu_vec_xyz CGeomManager::CurNormal
protected

Definition at line 107 of file gmanager.h.

◆ CurTexCoord

float CGeomManager::CurTexCoord[2]
protected

Definition at line 108 of file gmanager.h.

◆ DoNormalize

bool CGeomManager::DoNormalize = false
staticprotected

Definition at line 109 of file gmanager.h.

◆ Prim

GLenum CGeomManager::Prim
protected

Definition at line 111 of file gmanager.h.

◆ InsideBeginEnd

bool CGeomManager::InsideBeginEnd
protected

Definition at line 113 of file gmanager.h.

◆ LastArrayAccessWasIndexed

bool CGeomManager::LastArrayAccessWasIndexed
protected

Definition at line 115 of file gmanager.h.

◆ LastArrayAccessIsValid

bool CGeomManager::LastArrayAccessIsValid
protected

Definition at line 115 of file gmanager.h.

◆ UserRenderContextChanged

bool CGeomManager::UserRenderContextChanged
protected

Definition at line 117 of file gmanager.h.


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