diff options
author | chai <chaifix@163.com> | 2021-10-27 23:37:24 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-27 23:37:24 +0800 |
commit | 305ca0a09d4e750186b5190432de47f3493e806a (patch) | |
tree | d82f9ef73191abc2acbcbfdca4b184a28e6c381b /Runtime/Graphics/GPUDataBuffers.cpp | |
parent | 51ced5a191078ce4ef08d57e343e91db007f556f (diff) |
*GfxDevice
Diffstat (limited to 'Runtime/Graphics/GPUDataBuffers.cpp')
-rw-r--r-- | Runtime/Graphics/GPUDataBuffers.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/Runtime/Graphics/GPUDataBuffers.cpp b/Runtime/Graphics/GPUDataBuffers.cpp deleted file mode 100644 index 9e8df9f..0000000 --- a/Runtime/Graphics/GPUDataBuffers.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include "GPUDataBuffers.h"
-
-void foo()
-{
- GPUDataBuffer<float> buf = GPUDataBuffer<float>(GL_ARRAY_BUFFER, GL_STATIC_DRAW);
- int n = buf.GetComponentSize();
-}
-
-VBO::VBO() - : GPUDataBuffer<float>(GL_ARRAY_BUFFER, GL_STATIC_DRAW) -{ -} -VBO::VBO(GLenum usage) - : GPUDataBuffer<float>(GL_ARRAY_BUFFER, usage) -{ -} -
-VBO::~VBO() -{ -} - -void VBO::AddVertexAttribute(int index, int numOfComps, int stride) -{ - VertexAttributeDescriptor attribute = VertexAttributeDescriptor();
- attribute.index = index;
- attribute.numOfComponents = numOfComps;
- attribute.stride = stride;
- m_Layout.attributes.push_back(attribute);
-} -void VBO::AddVertexAttribute(VertexAttributeDescriptor& attribute) -{ - m_Layout.attributes.push_back(attribute);
-} -int VBO::GetVertexAttributesCount() -{ - return m_Layout.attributes.size(); -} -void VBO::ClearVertexAttribute() -{ - m_Layout.attributes.clear();
-} - |