From 51a715ffe0b138960846e9f407a1290037931b33 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 30 Jul 2019 22:08:14 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9=E6=88=90=E5=91=98=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/modules/asura-core/graphics/gpu_buffer.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source/modules/asura-core/graphics/gpu_buffer.h') diff --git a/source/modules/asura-core/graphics/gpu_buffer.h b/source/modules/asura-core/graphics/gpu_buffer.h index f759c16..09c5476 100644 --- a/source/modules/asura-core/graphics/gpu_buffer.h +++ b/source/modules/asura-core/graphics/gpu_buffer.h @@ -61,20 +61,20 @@ namespace AsuraEngine GLenum ConvertBufferUsage(BufferUsage type); GLenum ConvertBufferDataType(BufferDataType type); - GLenum mTarget; - GLuint mBuffer; + GLenum m_Target; + GLuint m_Buffer; /// /// opengl的显存缓冲并没有对数据类型的要求,只在glVertexAttribPointer时会指定,并在 /// drawcall 时根据给定的数据起始地址和类型从buffer中取各类顶点数据,所以不同的数据类型 /// 可以保存在一个buffer中。但是为了保持接口的简洁,这里在初始化buffer时指明保存的数据 /// 类型,并在整个周期内保持数据类型的一致,所以不同的数据类型分属不同的buffer。 /// - GLenum mDataType; - GLuint mUsage; - uint mSize; + GLenum m_DataType; + GLuint m_Usage; + uint m_Size; #if ASURA_DEBUG - byte* mData; + byte* m_Data; #endif luaxport: -- cgit v1.1-26-g67d0