re3-wiiu/src/render/RenderBuffer.h

25 lines
747 B
C
Raw Normal View History

2019-05-15 16:52:37 +02:00
class RenderBuffer
{
public:
2020-04-17 07:54:14 +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
2020-06-07 03:11:10 +02:00
#define TEMPBUFFERVERTSIZE 512
2019-07-11 02:22:01 +02:00
#define TEMPBUFFERINDEXSIZE 1024
2020-07-20 19:31:59 +02:00
struct VertexBufferUnion
{
RwIm2DVertex im2d[TEMPBUFFERVERTSIZE];
RwIm3DVertex im3d[TEMPBUFFERVERTSIZE];
};
2020-04-17 07:54:14 +02:00
extern int32 TempBufferVerticesStored;
extern int32 TempBufferIndicesStored;
2020-07-20 19:31:59 +02:00
extern VertexBufferUnion TempVertexBuffer;
#define TempBufferRenderVertices (TempVertexBuffer.im3d)
2020-04-17 07:54:14 +02:00
extern RwImVertexIndex TempBufferRenderIndexList[TEMPBUFFERINDEXSIZE];