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

@@ -19,17 +19,17 @@ struct PosColorVertex
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)
.end();
};
static bgfx::VertexLayout ms_decl;
static bgfx::VertexLayout ms_layout;
};
bgfx::VertexLayout PosColorVertex::ms_decl;
bgfx::VertexLayout PosColorVertex::ms_layout;
static PosColorVertex s_cubeVertices[] =
{
@@ -170,7 +170,7 @@ public:
m_vbh = bgfx::createVertexBuffer(
// Static data can be passed with bgfx::makeRef
bgfx::makeRef(s_cubeVertices, sizeof(s_cubeVertices) )
, PosColorVertex::ms_decl
, PosColorVertex::ms_layout
);
// Create static index buffer for triangle list rendering.