summaryrefslogtreecommitdiff
path: root/Runtime/Graphics
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-01 12:10:29 +0800
committerchai <chaifix@163.com>2021-11-01 12:10:29 +0800
commit44d6c41e5e586572de08c72c358aed9100a30353 (patch)
treea3dee8cbb9f7181c88464b31f231a264c570acd4 /Runtime/Graphics
parent78417f6cdedfcf60c8ca437190975644e942e01f (diff)
*log
Diffstat (limited to 'Runtime/Graphics')
-rw-r--r--Runtime/Graphics/DynamicVertexBuffer.h1
-rw-r--r--Runtime/Graphics/VertexBuffer.h7
2 files changed, 4 insertions, 4 deletions
diff --git a/Runtime/Graphics/DynamicVertexBuffer.h b/Runtime/Graphics/DynamicVertexBuffer.h
index a849f4c..b520d1b 100644
--- a/Runtime/Graphics/DynamicVertexBuffer.h
+++ b/Runtime/Graphics/DynamicVertexBuffer.h
@@ -10,6 +10,7 @@
#include "CustomVertexLayout.h"
#include "Primitive.h"
+// ¶¯Ì¬Ìî³äµÄVBO
class DynamicVertexBuffer
{
public:
diff --git a/Runtime/Graphics/VertexBuffer.h b/Runtime/Graphics/VertexBuffer.h
index 5e4fdf2..e6fd9ee 100644
--- a/Runtime/Graphics/VertexBuffer.h
+++ b/Runtime/Graphics/VertexBuffer.h
@@ -1,5 +1,4 @@
-#ifndef VBO_H
-#define VBO_H
+#pragma once
#include <vector>
@@ -31,8 +30,8 @@ public:
private:
VertexBufferType m_Type;
+
GPU::DataBuffer* m_VB;
GPU::DataBuffer* m_IB;
-};
-#endif \ No newline at end of file
+};