PS2GL
OpenGL*-like API for the PS2
|
Public Member Functions | |
virtual void | Load () |
Load the renderer into vu0/vu1 memory. | |
virtual const char * | GetName () |
Return a pointer to the text name of this renderer. | |
Public Member Functions inherited from CRenderer | |
virtual tU64 | GetCapabilities () const |
virtual tU64 | GetRequirements () const |
virtual void | InitContext (GLenum primType, tU32 rcChanges, bool userRcChanged)=0 |
virtual void | DrawLinearArrays (CGeometryBlock &block) |
Draw arrays of vertices that are accessed linearly (i.e., glDrawArrays) | |
virtual void | DrawIndexedArrays (CGeometryBlock &block) |
Draw arrays of vertices that are accessed by index (i.e., glDrawElements) | |
virtual bool | GetCachePackets (const CGeometryBlock &geometry)=0 |
virtual CRendererProps | GetRenderContextDeps ()=0 |
virtual int | GetPacketQwordSize (const CGeometryBlock &geometry)=0 |
Protected Member Functions | |
CBaseRenderer (void *packet, int packetSize, int inQuadsPerVert, int outQuadsPerVert, int inGeomOffset, const char *name) | |
CBaseRenderer (void *packet, int packetSize, CRendererProps caps, CRendererProps reqs, int inQuadsPerVert, int outQuadsPerVert, int inGeomOffset, const char *name) | |
void | SetVifDoubleBuffered (bool db) |
void | GetUnpackAttribs (int numWords, unsigned int &mode, Vifs::tMask &mask) |
void | InitXferBlock (CVifSCDmaPacket &packet, int wordsPerVertex, int wordsPerNormal, int wordsPerTex, int wordsPerColor) |
void | XferBlock (CVifSCDmaPacket &packet, const void *vertices, const void *normals, const void *texCoords, const void *colors, int vu1Offset, int firstElement, int numToAdd) |
void | XferVectors (CVifSCDmaPacket &packet, unsigned int *dataStart, int startOffset, int numVectors, int wordsPerVec, Vifs::tMask unpackMask, tU32 unpackMode, int vu1MemOffset) |
void | AddVu1RendererContext (CVifSCDmaPacket &packet, GLenum primType, int vu1Offset) |
tGifTag | BuildGiftag (GLenum primType) |
void | CacheRendererState () |
float | GetMaxColorValue (bool texEnabled) |
Protected Member Functions inherited from CRenderer | |
CRenderer (tU64 caps, tU64 reqs) | |
void | SetCapabilities (tU64 caps) |
void | SetRequirements (tU64 reqs) |
Protected Attributes | |
bool | XferVertices |
bool | XferColors |
bool | XferNormals |
bool | XferTexCoords |
bool | VifDoubleBuffered |
float | CurTexCoord [2] |
cpu_vec_xyz | CurNormal |
CDmaPacket * | TexCoordBuf |
CDmaPacket * | NormalBuf |
int | WordsPerVertex |
int | WordsPerNormal |
int | WordsPerTexCoord |
int | WordsPerColor |
unsigned int | VertexUnpackMode |
unsigned int | NormalUnpackMode |
unsigned int | TexCoordUnpackMode |
unsigned int | ColorUnpackMode |
Vifs::tMask | VertexUnpackMask |
Vifs::tMask | NormalUnpackMask |
Vifs::tMask | TexCoordUnpackMask |
Vifs::tMask | ColorUnpackMask |
int | InputQuadsPerVert |
int | OutputQuadsPerVert |
int | InputGeomOffset |
void * | MicrocodePacket |
int | MicrocodePacketSize |
const char * | Name |
Protected Attributes inherited from CRenderer | |
tU64 | Capabilities |
tU64 | Requirements |
Definition at line 19 of file base_renderer.h.
|
inlineprotected |
Definition at line 45 of file base_renderer.h.
|
inlineprotected |
Definition at line 63 of file base_renderer.h.
|
inlineprotected |
Definition at line 82 of file base_renderer.h.
|
protected |
Definition at line 25 of file base_renderer.cpp.
|
protected |
Caches some data frequently used by XferBlock(), sets up row register. The parameters wordsPerNormal, wordsPerTex, and wordsPerColor should be zero if the application has not given normals, texture coords, or colors.
Definition at line 60 of file base_renderer.cpp.
Referenced by CIndexedRenderer::DrawIndexedArrays(), and CLinearRenderer::DrawLinearArrays().
|
protected |
Transfers a block of geometry to vu0/vu1 using packet, where "geometry" means vertices and zero or more normals, texture coordinates, and colors. Note that you MUST set the vif1 write mode correctly before calling XferBlock!! (e.g., Stcycl(1, vu1QuadsPerVert)) normals, texCoords, and colors should be NULL if not provided.
vu1Offset | offset into vu1 memory in quadwords |
firstElement | the starting "offset" into the vertex, normal, etc. arrays (for example: this would be "2" to start draw from the 3rd element) |
Definition at line 114 of file base_renderer.cpp.
Referenced by CIndexedRenderer::DrawIndexedArrays().
|
protected |
Definition at line 432 of file base_renderer.cpp.
|
protected |
Definition at line 193 of file base_renderer.cpp.
|
protected |
Definition at line 378 of file base_renderer.cpp.
|
protected |
Definition at line 394 of file base_renderer.cpp.
|
inlineprotected |
Definition at line 109 of file base_renderer.h.
|
virtual |
Load the renderer into vu0/vu1 memory.
Implements CRenderer.
Definition at line 401 of file base_renderer.cpp.
|
inlinevirtual |
Return a pointer to the text name of this renderer.
Implements CRenderer.
Definition at line 119 of file base_renderer.h.
|
protected |
Definition at line 22 of file base_renderer.h.
|
protected |
Definition at line 22 of file base_renderer.h.
|
protected |
Definition at line 22 of file base_renderer.h.
|
protected |
Definition at line 22 of file base_renderer.h.
|
protected |
Definition at line 24 of file base_renderer.h.
|
protected |
Definition at line 27 of file base_renderer.h.
|
protected |
Definition at line 28 of file base_renderer.h.
|
protected |
Definition at line 29 of file base_renderer.h.
|
protected |
Definition at line 29 of file base_renderer.h.
|
protected |
Definition at line 31 of file base_renderer.h.
|
protected |
Definition at line 31 of file base_renderer.h.
|
protected |
Definition at line 31 of file base_renderer.h.
|
protected |
Definition at line 31 of file base_renderer.h.
|
protected |
Definition at line 32 of file base_renderer.h.
|
protected |
Definition at line 32 of file base_renderer.h.
|
protected |
Definition at line 33 of file base_renderer.h.
|
protected |
Definition at line 33 of file base_renderer.h.
|
protected |
Definition at line 34 of file base_renderer.h.
|
protected |
Definition at line 34 of file base_renderer.h.
|
protected |
Definition at line 35 of file base_renderer.h.
|
protected |
Definition at line 35 of file base_renderer.h.
|
protected |
Definition at line 37 of file base_renderer.h.
|
protected |
Definition at line 37 of file base_renderer.h.
|
protected |
Definition at line 38 of file base_renderer.h.
|
protected |
Definition at line 40 of file base_renderer.h.
|
protected |
Definition at line 41 of file base_renderer.h.
|
protected |
Definition at line 43 of file base_renderer.h.