diff options
Diffstat (limited to 'src/renderer/RenderBuffer.h')
-rw-r--r-- | src/renderer/RenderBuffer.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/renderer/RenderBuffer.h b/src/renderer/RenderBuffer.h index 485d24e3..a0f3e7b9 100644 --- a/src/renderer/RenderBuffer.h +++ b/src/renderer/RenderBuffer.h @@ -9,10 +9,17 @@ public: static void RenderStuffInBuffer(void); }; -#define TEMPBUFFERVERTSIZE 256 +#define TEMPBUFFERVERTSIZE 512 #define TEMPBUFFERINDEXSIZE 1024 +struct VertexBufferUnion +{ + RwIm2DVertex im2d[TEMPBUFFERVERTSIZE]; + RwIm3DVertex im3d[TEMPBUFFERVERTSIZE]; +}; + extern int32 TempBufferVerticesStored; extern int32 TempBufferIndicesStored; -extern RwIm3DVertex TempBufferRenderVertices[TEMPBUFFERVERTSIZE]; +extern VertexBufferUnion TempVertexBuffer; +#define TempBufferRenderVertices (TempVertexBuffer.im3d) extern RwImVertexIndex TempBufferRenderIndexList[TEMPBUFFERINDEXSIZE];
\ No newline at end of file |