summaryrefslogtreecommitdiffstats
path: root/src/render/RenderBuffer.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-07-20 19:56:03 +0200
committerGitHub <noreply@github.com>2020-07-20 19:56:03 +0200
commitf0f3ce018dc8da7d702bcb25755f8443d25796e6 (patch)
tree3c8e0c59894df98cba51f86b2169a35b10619f0f /src/render/RenderBuffer.h
parentFix OneShotPriority overflow (diff)
parentCPlaneTrails and CPlaneBanners done (diff)
downloadre3-f0f3ce018dc8da7d702bcb25755f8443d25796e6.tar
re3-f0f3ce018dc8da7d702bcb25755f8443d25796e6.tar.gz
re3-f0f3ce018dc8da7d702bcb25755f8443d25796e6.tar.bz2
re3-f0f3ce018dc8da7d702bcb25755f8443d25796e6.tar.lz
re3-f0f3ce018dc8da7d702bcb25755f8443d25796e6.tar.xz
re3-f0f3ce018dc8da7d702bcb25755f8443d25796e6.tar.zst
re3-f0f3ce018dc8da7d702bcb25755f8443d25796e6.zip
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