diff options
author | aap <aap@papnet.eu> | 2020-07-20 19:31:59 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-07-20 19:50:20 +0200 |
commit | 2612c9f12cf0e787e5b3bac955a5488b101111e8 (patch) | |
tree | 3c8e0c59894df98cba51f86b2169a35b10619f0f /src/render/RenderBuffer.h | |
parent | CPlane done (diff) | |
download | re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar.gz re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar.bz2 re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar.lz re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar.xz re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar.zst re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.zip |
Diffstat (limited to '')
-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 |