diff options
author | chai <chaifix@163.com> | 2019-07-30 22:08:14 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-07-30 22:08:14 +0800 |
commit | 51a715ffe0b138960846e9f407a1290037931b33 (patch) | |
tree | 55c21cef5ffa5005a8c4c2a9602773ab479e8d0b /source/modules/asura-core/graphics/binding | |
parent | ecd7883521cbde02f4f1a6b23a7b3b601c32dbef (diff) |
*修改成员变量前缀
Diffstat (limited to 'source/modules/asura-core/graphics/binding')
-rw-r--r-- | source/modules/asura-core/graphics/binding/_gpu_buffer.cpp | 6 | ||||
-rw-r--r-- | source/modules/asura-core/graphics/binding/_texture.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/source/modules/asura-core/graphics/binding/_gpu_buffer.cpp b/source/modules/asura-core/graphics/binding/_gpu_buffer.cpp index f55ba64..785496e 100644 --- a/source/modules/asura-core/graphics/binding/_gpu_buffer.cpp +++ b/source/modules/asura-core/graphics/binding/_gpu_buffer.cpp @@ -68,7 +68,7 @@ namespace AsuraEngine lua_rawgeti(L, 2, i); while (!lua_isnil(L, -1)) { - switch (self->mDataType) + switch (self->m_DataType) { case GL_INT: { @@ -104,14 +104,14 @@ namespace AsuraEngine LUAX_IMPL_METHOD(GPUBuffer, _GetSize) { LUAX_PREPARE(L, GPUBuffer); - state.Push(self->mSize); + state.Push(self->m_Size); return 0; } LUAX_IMPL_METHOD(GPUBuffer, _GetCount) { LUAX_PREPARE(L, GPUBuffer); - state.Push(self->mSize / self->GetDataTypeSize()); + state.Push(self->m_Size / self->GetDataTypeSize()); return 0; } diff --git a/source/modules/asura-core/graphics/binding/_texture.cpp b/source/modules/asura-core/graphics/binding/_texture.cpp index 489d362..305ac22 100644 --- a/source/modules/asura-core/graphics/binding/_texture.cpp +++ b/source/modules/asura-core/graphics/binding/_texture.cpp @@ -61,8 +61,8 @@ namespace AsuraEngine LUAX_IMPL_METHOD(Texture, _GetFilterMode) { LUAX_PREPARE(L, Texture); - state.Push((int)self->mMinFilter); - state.Push((int)self->mMagFilter); + state.Push((int)self->m_MinFilter); + state.Push((int)self->m_MagFilter); return 2; } @@ -70,7 +70,7 @@ namespace AsuraEngine LUAX_IMPL_METHOD(Texture, _GetWrapMode) { LUAX_PREPARE(L, Texture); - state.Push((int)self->mWrapMode); + state.Push((int)self->m_WrapMode); return 1; } |