summaryrefslogtreecommitdiff
path: root/Source/modules/asura-core/Graphics/VBOs.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-08-16 08:54:08 +0800
committerchai <chaifix@163.com>2019-08-16 08:54:08 +0800
commita077eb38b01292611f4f6031b75e3e2c1c20f06e (patch)
tree8f760483d7b0290952bbdb5bcd8f3943102aeb3a /Source/modules/asura-core/Graphics/VBOs.h
parent6a065c913e9308cc72e1ad0723b6167048f439b6 (diff)
Diffstat (limited to 'Source/modules/asura-core/Graphics/VBOs.h')
-rw-r--r--Source/modules/asura-core/Graphics/VBOs.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/Source/modules/asura-core/Graphics/VBOs.h b/Source/modules/asura-core/Graphics/VBOs.h
new file mode 100644
index 0000000..0833534
--- /dev/null
+++ b/Source/modules/asura-core/Graphics/VBOs.h
@@ -0,0 +1,56 @@
+#ifndef _ASURA_ENGINE_VBO_H_
+#define _ASURA_ENGINE_VBO_H_
+
+#include <asura-base/Classes.h>
+#include <asura-base/Type.h>
+
+namespace_begin(AsuraEngine)
+namespace_begin(Graphics)
+
+struct VertexBufferData
+{
+
+};
+
+struct IndexBufferData
+{
+
+};
+
+class VBO
+{
+public:
+
+private:
+
+
+
+};
+
+class SharedVBO;
+
+class DynamicVBO
+{
+public:
+
+ void GetChunk(uint32 maxVertices, uint32 maxIndices, void** outVB, void** outIB);
+ void ReleaseChunk(uint32 actualVertices, uint32 actualIndices);
+
+private:
+
+ // vertex buffer
+ SharedVBO* m_VB;
+ SharedVBO* m_LargeVB;
+ SharedVBO* m_ActiveVB;
+
+ // index buffer
+ SharedVBO* m_IB;
+ SharedVBO* m_LargeIB;
+ SharedVBO* m_ActiveIB;
+
+};
+
+namespace_end
+namespace_end
+
+#endif \ No newline at end of file