diff options
author | chai <chaifix@163.com> | 2021-10-27 19:30:06 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-27 19:30:06 +0800 |
commit | 51ced5a191078ce4ef08d57e343e91db007f556f (patch) | |
tree | 72dce341b2019e5b14c789a9edfb47d5b31900a6 /Runtime/Graphics/VertexBuffer.h | |
parent | e6a15decac22912900d2cbd2e5525229b92bb55a (diff) |
*misc
Diffstat (limited to 'Runtime/Graphics/VertexBuffer.h')
-rw-r--r-- | Runtime/Graphics/VertexBuffer.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Runtime/Graphics/VertexBuffer.h b/Runtime/Graphics/VertexBuffer.h index 9179e0d..cf33cc5 100644 --- a/Runtime/Graphics/VertexBuffer.h +++ b/Runtime/Graphics/VertexBuffer.h @@ -7,7 +7,7 @@ #include "../Shaders/ShaderChannel.h" #include "OpenGL.h" -#include "GpuDataBuffer.h" +#include "GPUDataBuffers.h" enum VertexAttr { @@ -62,7 +62,8 @@ public: private: VertexBufferType m_Type; - GPU::DataBuffer *m_VB, *m_IB;// vertex buffer and index buffer + VBO *m_VB; + IBO *m_IB;// vertex buffer and index buffer }; @@ -87,7 +88,8 @@ private: enum { DataBufferThreshold = 1024 }; // shared vbo and ibo - GPU::DataBuffer *m_CurVB, *m_CurIB; + VBO *m_CurVB; + IBO *m_CurIB; // restore vbo and ibo data if not using pinned memory mapping std::vector<byte> m_CurVBData; |