summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/DynamicVertexBuffer.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-02 19:44:01 +0800
committerchai <chaifix@163.com>2021-11-02 19:44:01 +0800
commit72812a7b47f90f9460e54e8149ba9199a7841244 (patch)
tree9ebdb4b65d7cbbc0a3d7c436a9b45d4eff351b62 /Runtime/Graphics/DynamicVertexBuffer.h
parentb7511abf1a1f302b5c7ebf50faaf65b62d7bb6ed (diff)
! Text mesh done
Diffstat (limited to 'Runtime/Graphics/DynamicVertexBuffer.h')
-rw-r--r--Runtime/Graphics/DynamicVertexBuffer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Runtime/Graphics/DynamicVertexBuffer.h b/Runtime/Graphics/DynamicVertexBuffer.h
index 12aa48c..6f21010 100644
--- a/Runtime/Graphics/DynamicVertexBuffer.h
+++ b/Runtime/Graphics/DynamicVertexBuffer.h
@@ -35,8 +35,8 @@ private:
void Clean();
- // 如果数据大小超过这个限制,用内存数据,而不是glBufferData
- enum { DataBufferThreshold = 1024 };
+ // 如果数据大小小于这个限制,用内存数据,而不是glBufferData
+ static const int kDataBufferThreshold = 1024;
GPU::DataBuffer *m_CurVB;
GPU::DataBuffer *m_CurIB;
@@ -52,4 +52,4 @@ private:
uint m_CurVertexCount;
uint m_CurIndexCount;
-};
+}; \ No newline at end of file