23 CDmaPacket VertexBuf0, NormalBuf0, TexCoordBuf0, ColorBuf0;
24 CDmaPacket VertexBuf1, NormalBuf1, TexCoordBuf1, ColorBuf1;
25 CDmaPacket *CurVertexBuf, *CurNormalBuf, *CurTexCoordBuf, *CurColorBuf;
41 void PrimChanged(GLenum primType);
42 void SyncRendererContext(GLenum primType);
45 void SyncColorMaterial(
bool pvColorsArePresent);
47 void DrawingLinearArray();
48 void DrawingIndexedArray();
50 void SyncArrayType(ArrayType::tArrayType type)
52 if (type == ArrayType::kLinear)
55 DrawingIndexedArray();
62 inline CDmaPacket& GetNormalBuf() {
return *CurNormalBuf; }
63 inline CDmaPacket& GetTexCoordBuf() {
return *CurTexCoordBuf; }
67 void EnableCustom(tU64 flag) { RendererManager.EnableCustom(flag); }
68 void DisableCustom(tU64 flag) { RendererManager.DisableCustom(flag); }
72 void BeginGeom(GLenum mode);
73 void Vertex(cpu_vec_xyzw newVert);
74 void Normal(cpu_vec_xyz normal);
75 void TexCoord(
float u,
float v);
76 void Color(cpu_vec_xyzw color);
78 void DrawArrays(GLenum mode,
int first,
int count);
79 void DrawIndexedArrays(GLenum primType,
80 int numIndices,
const unsigned char* indices,