PS2GL
OpenGL*-like API for the PS2
|
Public Member Functions | |
CImmGeomManager (CGLContext &context, int immBufferQwordSize) | |
CRendererManager & | GetRendererManager () |
void | SwapBuffers () |
void | PrimChanged (GLenum primType) |
void | SyncRendererContext (GLenum primType) |
void | SyncRenderer () |
void | SyncGsContext () |
void | SyncColorMaterial (bool pvColorsArePresent) |
void | DrawingLinearArray () |
void | DrawingIndexedArray () |
void | SyncArrayType (ArrayType::tArrayType type) |
CDmaPacket & | GetNormalBuf () |
CDmaPacket & | GetTexCoordBuf () |
void | EnableCustom (tU64 flag) |
void | DisableCustom (tU64 flag) |
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) |
CVertArray & | GetVertArray () |
Private Member Functions | |
void | CommitNewGeom () |
Private Attributes | |
CRendererManager | RendererManager |
CDmaPacket | VertexBuf0 |
CDmaPacket | NormalBuf0 |
CDmaPacket | TexCoordBuf0 |
CDmaPacket | ColorBuf0 |
CDmaPacket | VertexBuf1 |
CDmaPacket | NormalBuf1 |
CDmaPacket | TexCoordBuf1 |
CDmaPacket | ColorBuf1 |
CDmaPacket * | CurVertexBuf |
CDmaPacket * | CurNormalBuf |
CDmaPacket * | CurTexCoordBuf |
CDmaPacket * | CurColorBuf |
CGeometryBlock | Geometry |
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 | |
CGLContext & | GLContext |
cpu_vec_xyz | CurNormal |
float | CurTexCoord [2] |
GLenum | Prim |
bool | InsideBeginEnd |
bool | LastArrayAccessWasIndexed |
bool | LastArrayAccessIsValid |
bool | UserRenderContextChanged |
Static Protected Attributes inherited from CGeomManager | |
static CVertArray * | VertArray |
static const unsigned int | kMaxUserPrimTypes = PGL_MAX_CUSTOM_PRIM_TYPES |
static tUserPrimEntry | UserPrimTypes [kMaxUserPrimTypes] |
static bool | DoNormalize = false |
Definition at line 16 of file immgmanager.h.
CImmGeomManager::CImmGeomManager | ( | CGLContext & | context, |
int | immBufferQwordSize | ||
) |
Definition at line 31 of file immgmanager.cpp.
|
virtual |
Definition at line 61 of file immgmanager.cpp.
|
private |
Definition at line 304 of file immgmanager.cpp.
|
inline |
Definition at line 35 of file immgmanager.h.
void CImmGeomManager::SwapBuffers | ( | ) |
Definition at line 66 of file immgmanager.cpp.
void CImmGeomManager::PrimChanged | ( | GLenum | primType | ) |
Definition at line 349 of file immgmanager.cpp.
void CImmGeomManager::SyncRendererContext | ( | GLenum | primType | ) |
Definition at line 363 of file immgmanager.cpp.
void CImmGeomManager::SyncRenderer | ( | ) |
Definition at line 355 of file immgmanager.cpp.
void CImmGeomManager::SyncGsContext | ( | ) |
Definition at line 378 of file immgmanager.cpp.
void CImmGeomManager::SyncColorMaterial | ( | bool | pvColorsArePresent | ) |
Definition at line 409 of file immgmanager.cpp.
void CImmGeomManager::DrawingLinearArray | ( | ) |
Definition at line 294 of file immgmanager.cpp.
void CImmGeomManager::DrawingIndexedArray | ( | ) |
Definition at line 219 of file immgmanager.cpp.
|
inline |
Definition at line 50 of file immgmanager.h.
|
inline |
Definition at line 62 of file immgmanager.h.
|
inline |
Definition at line 63 of file immgmanager.h.
|
inlinevirtual |
Implements CGeomManager.
Definition at line 67 of file immgmanager.h.
|
inlinevirtual |
Implements CGeomManager.
Definition at line 68 of file immgmanager.h.
|
virtual |
Implements CGeomManager.
Definition at line 95 of file immgmanager.cpp.
|
virtual |
Implements CGeomManager.
Definition at line 111 of file immgmanager.cpp.
|
virtual |
Implements CGeomManager.
Definition at line 127 of file immgmanager.cpp.
|
virtual |
Implements CGeomManager.
Definition at line 144 of file immgmanager.cpp.
|
virtual |
Implements CGeomManager.
Definition at line 134 of file immgmanager.cpp.
|
virtual |
Implements CGeomManager.
Definition at line 150 of file immgmanager.cpp.
|
virtual |
Implements CGeomManager.
Definition at line 183 of file immgmanager.cpp.
|
virtual |
Implements CGeomManager.
Definition at line 229 of file immgmanager.cpp.
|
virtual |
Implements CGeomManager.
Definition at line 438 of file immgmanager.cpp.
|
private |
Definition at line 18 of file immgmanager.h.
|
private |
Definition at line 23 of file immgmanager.h.
|
private |
Definition at line 23 of file immgmanager.h.
|
private |
Definition at line 23 of file immgmanager.h.
|
private |
Definition at line 23 of file immgmanager.h.
|
private |
Definition at line 24 of file immgmanager.h.
|
private |
Definition at line 24 of file immgmanager.h.
|
private |
Definition at line 24 of file immgmanager.h.
|
private |
Definition at line 24 of file immgmanager.h.
|
private |
Definition at line 25 of file immgmanager.h.
|
private |
Definition at line 25 of file immgmanager.h.
|
private |
Definition at line 25 of file immgmanager.h.
|
private |
Definition at line 25 of file immgmanager.h.
|
private |
Definition at line 27 of file immgmanager.h.