Rename variables and constants

This commit is contained in:
Leandro Freire
2019-08-17 18:35:21 +01:00
committed by Бранимир Караџић
parent 2554425bae
commit 1db46f4fe6
68 changed files with 1123 additions and 1125 deletions

View File

@@ -21,7 +21,7 @@ struct PosColorTexCoord0Vertex
static void init()
{
ms_decl
ms_layout
.begin()
.add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float)
.add(bgfx::Attrib::Color0, 4, bgfx::AttribType::Uint8, true)
@@ -29,17 +29,17 @@ struct PosColorTexCoord0Vertex
.end();
}
static bgfx::VertexLayout ms_decl;
static bgfx::VertexLayout ms_layout;
};
bgfx::VertexLayout PosColorTexCoord0Vertex::ms_decl;
bgfx::VertexLayout PosColorTexCoord0Vertex::ms_layout;
void renderScreenSpaceQuad(uint8_t _view, bgfx::ProgramHandle _program, float _x, float _y, float _width, float _height)
{
bgfx::TransientVertexBuffer tvb;
bgfx::TransientIndexBuffer tib;
if (bgfx::allocTransientBuffers(&tvb, PosColorTexCoord0Vertex::ms_decl, 4, &tib, 6) )
if (bgfx::allocTransientBuffers(&tvb, PosColorTexCoord0Vertex::ms_layout, 4, &tib, 6) )
{
PosColorTexCoord0Vertex* vertex = (PosColorTexCoord0Vertex*)tvb.data;