From 72812a7b47f90f9460e54e8149ba9199a7841244 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 2 Nov 2021 19:44:01 +0800 Subject: ! Text mesh done --- Runtime/Graphics/GPUDataBuffer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Runtime/Graphics/GPUDataBuffer.h') diff --git a/Runtime/Graphics/GPUDataBuffer.h b/Runtime/Graphics/GPUDataBuffer.h index f66d951..3d24514 100644 --- a/Runtime/Graphics/GPUDataBuffer.h +++ b/Runtime/Graphics/GPUDataBuffer.h @@ -15,6 +15,9 @@ namespace GPU class DataBuffer { public: + DataBuffer(); + ~DataBuffer(); + void Upload(int offset, int size, const void* data); void* Map(uint32 access); void* MapRange(int offset, int size, uint32 access); // ÐÔÄÜ×î¼Ñ @@ -34,9 +37,6 @@ namespace GPU private: friend class BufferPool; - DataBuffer(); - ~DataBuffer(); - GLuint m_Handle; int m_Size; GLenum m_Usage; -- cgit v1.1-26-g67d0