summaryrefslogtreecommitdiffstats
path: root/src/renderer/RenderBuffer.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-07-23 23:47:04 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2021-07-23 23:47:04 +0200
commita7e673c2ec6a5ed25f3bae8caab90e2113158c03 (patch)
tree8c88859a32b0613a4c28fd1a0432504403e5a5e6 /src/renderer/RenderBuffer.h
parentfix premake (diff)
downloadre3-a7e673c2ec6a5ed25f3bae8caab90e2113158c03.tar
re3-a7e673c2ec6a5ed25f3bae8caab90e2113158c03.tar.gz
re3-a7e673c2ec6a5ed25f3bae8caab90e2113158c03.tar.bz2
re3-a7e673c2ec6a5ed25f3bae8caab90e2113158c03.tar.lz
re3-a7e673c2ec6a5ed25f3bae8caab90e2113158c03.tar.xz
re3-a7e673c2ec6a5ed25f3bae8caab90e2113158c03.tar.zst
re3-a7e673c2ec6a5ed25f3bae8caab90e2113158c03.zip
Diffstat (limited to 'src/renderer/RenderBuffer.h')
-rw-r--r--src/renderer/RenderBuffer.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/renderer/RenderBuffer.h b/src/renderer/RenderBuffer.h
new file mode 100644
index 00000000..485d24e3
--- /dev/null
+++ b/src/renderer/RenderBuffer.h
@@ -0,0 +1,18 @@
+class RenderBuffer
+{
+public:
+ static int VerticesToBeStored;
+ static int IndicesToBeStored;
+ static void ClearRenderBuffer(void);
+ static void StartStoring(int numIndices, int numVertices, RwImVertexIndex **indexStart, RwIm3DVertex **vertexStart);
+ static void StopStoring(void);
+ static void RenderStuffInBuffer(void);
+};
+
+#define TEMPBUFFERVERTSIZE 256
+#define TEMPBUFFERINDEXSIZE 1024
+
+extern int32 TempBufferVerticesStored;
+extern int32 TempBufferIndicesStored;
+extern RwIm3DVertex TempBufferRenderVertices[TEMPBUFFERVERTSIZE];
+extern RwImVertexIndex TempBufferRenderIndexList[TEMPBUFFERINDEXSIZE]; \ No newline at end of file