diff options
author | aap <aap@papnet.eu> | 2020-07-20 19:56:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-20 19:56:03 +0200 |
commit | f0f3ce018dc8da7d702bcb25755f8443d25796e6 (patch) | |
tree | 3c8e0c59894df98cba51f86b2169a35b10619f0f /src/render/RenderBuffer.h | |
parent | Fix OneShotPriority overflow (diff) | |
parent | CPlaneTrails and CPlaneBanners done (diff) | |
download | re3-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.h | 10 |
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 |