summaryrefslogtreecommitdiff
path: root/src/render/RenderBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/RenderBuffer.h')
-rw-r--r--src/render/RenderBuffer.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/render/RenderBuffer.h b/src/render/RenderBuffer.h
index 0789dfa5..a0f3e7b9 100644
--- a/src/render/RenderBuffer.h
+++ b/src/render/RenderBuffer.h
@@ -12,8 +12,14 @@ public:
#define TEMPBUFFERVERTSIZE 512
#define TEMPBUFFERINDEXSIZE 1024
+struct VertexBufferUnion
+{
+ RwIm2DVertex im2d[TEMPBUFFERVERTSIZE];
+ RwIm3DVertex im3d[TEMPBUFFERVERTSIZE];
+};
+
extern int32 TempBufferVerticesStored;
extern int32 TempBufferIndicesStored;
-extern RwIm2DVertex *TempVertexBuffer;
-extern RwIm3DVertex TempBufferRenderVertices[TEMPBUFFERVERTSIZE];
+extern VertexBufferUnion TempVertexBuffer;
+#define TempBufferRenderVertices (TempVertexBuffer.im3d)
extern RwImVertexIndex TempBufferRenderIndexList[TEMPBUFFERINDEXSIZE]; \ No newline at end of file