2019-05-15 16:52:37 +02:00
|
|
|
class RenderBuffer
|
|
|
|
{
|
|
|
|
public:
|
2019-07-24 18:55:43 +02:00
|
|
|
static int &VerticesToBeStored;
|
|
|
|
static int &IndicesToBeStored;
|
2019-05-15 16:52:37 +02:00
|
|
|
static void ClearRenderBuffer(void);
|
|
|
|
static void StartStoring(int numIndices, int numVertices, RwImVertexIndex **indexStart, RwIm3DVertex **vertexStart);
|
|
|
|
static void StopStoring(void);
|
|
|
|
static void RenderStuffInBuffer(void);
|
|
|
|
};
|
2019-07-11 02:22:01 +02:00
|
|
|
|
|
|
|
#define TEMPBUFFERVERTSIZE 256
|
|
|
|
#define TEMPBUFFERINDEXSIZE 1024
|
|
|
|
|
|
|
|
extern int32 &TempBufferVerticesStored;
|
|
|
|
extern int32 &TempBufferIndicesStored;
|
|
|
|
extern RwIm3DVertex *TempBufferRenderVertices;
|
|
|
|
extern RwImVertexIndex *TempBufferRenderIndexList;
|