#include <base_renderer.h>
Inheritance diagram for CBaseRenderer::
Public Methods | |
virtual void | Load () |
Load the renderer into vu0/vu1 memory. More... | |
virtual const char * | GetName () |
Return a pointer to the text name of this renderer. More... | |
Protected Methods | |
CBaseRenderer (void *packet, int inQuadsPerVert, int outQuadsPerVert, int inGeomOffset, const char *name) | |
CBaseRenderer (void *packet, 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) |
Caches some data frequently used by XferBlock(), sets up row register. More... | |
void | XferBlock (CVifSCDmaPacket &packet, const void *vertices, const void *normals, const void *texCoords, const void *colors, int vu1Offset, int firstElement, int numToAdd) |
Transfers a block of geometry to vu0/vu1 using packet, where "geometry" means vertices and zero or more normals, texture coordinates, and colors. More... | |
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 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 |
const char * | Name |
|
Definition at line 44 of file base_renderer.h. |
|
Definition at line 55 of file base_renderer.h. |
|
Definition at line 202 of file base_renderer.cpp. Referenced by CLinearRenderer::InitContext(), and CIndexedRenderer::InitContext().
|
|
Definition at line 388 of file base_renderer.cpp. Referenced by AddVu1RendererContext().
|
|
Definition at line 408 of file base_renderer.cpp. Referenced by CLinearRenderer::InitContext(), and CIndexedRenderer::InitContext().
|
|
Definition at line 94 of file base_renderer.h. Referenced by AddVu1RendererContext(), and CIndexedRenderer::InitContext().
|
|
Return a pointer to the text name of this renderer.
Reimplemented from CRenderer. Definition at line 102 of file base_renderer.h. |
|
Definition at line 26 of file base_renderer.cpp. Referenced by InitXferBlock().
|
|
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 65 of file base_renderer.cpp. Referenced by CIndexedRenderer::DrawIndexedArrays(), and CLinearRenderer::DrawLinearArrays().
|
|
Load the renderer into vu0/vu1 memory.
Reimplemented from CRenderer. Definition at line 416 of file base_renderer.cpp. |
|
Definition at line 67 of file base_renderer.h. |
|
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.
Definition at line 121 of file base_renderer.cpp. Referenced by CLinearRenderer::DrawBlock(), and CIndexedRenderer::DrawIndexedArrays().
|
|
Definition at line 431 of file base_renderer.cpp. Referenced by XferBlock().
|
|
Definition at line 35 of file base_renderer.h. |
|
Definition at line 33 of file base_renderer.h. |
|
Definition at line 28 of file base_renderer.h. |
|
Definition at line 27 of file base_renderer.h. |
|
Definition at line 38 of file base_renderer.h. |
|
Definition at line 37 of file base_renderer.h. |
|
Definition at line 40 of file base_renderer.h. |
|
Definition at line 42 of file base_renderer.h. |
|
Definition at line 29 of file base_renderer.h. |
|
Definition at line 34 of file base_renderer.h. |
|
Definition at line 32 of file base_renderer.h. |
|
Definition at line 37 of file base_renderer.h. |
|
Definition at line 29 of file base_renderer.h. |
|
Definition at line 35 of file base_renderer.h. |
|
Definition at line 33 of file base_renderer.h. |
|
Definition at line 34 of file base_renderer.h. |
|
Definition at line 32 of file base_renderer.h. |
|
Definition at line 24 of file base_renderer.h. |
|
Definition at line 31 of file base_renderer.h. |
|
Definition at line 31 of file base_renderer.h. |
|
Definition at line 31 of file base_renderer.h. |
|
Definition at line 31 of file base_renderer.h. |
|
Definition at line 22 of file base_renderer.h. |
|
Definition at line 22 of file base_renderer.h. |
|
Definition at line 22 of file base_renderer.h. |
|
Definition at line 22 of file base_renderer.h. |