mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Rename variables and constants
This commit is contained in:
committed by
Бранимир Караџић
parent
2554425bae
commit
1db46f4fe6
@@ -26,17 +26,17 @@ struct PosTexcoordVertex
|
||||
|
||||
static void init()
|
||||
{
|
||||
ms_decl
|
||||
ms_layout
|
||||
.begin()
|
||||
.add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float)
|
||||
.add(bgfx::Attrib::TexCoord0, 3, bgfx::AttribType::Float)
|
||||
.end();
|
||||
};
|
||||
|
||||
static bgfx::VertexLayout ms_decl;
|
||||
static bgfx::VertexLayout ms_layout;
|
||||
};
|
||||
|
||||
bgfx::VertexLayout PosTexcoordVertex::ms_decl;
|
||||
bgfx::VertexLayout PosTexcoordVertex::ms_layout;
|
||||
|
||||
static PosTexcoordVertex s_cubeVertices[] =
|
||||
{
|
||||
@@ -239,7 +239,7 @@ public:
|
||||
}
|
||||
|
||||
// Create static vertex buffer.
|
||||
m_vbh = bgfx::createVertexBuffer(bgfx::makeRef(s_cubeVertices, sizeof(s_cubeVertices) ), PosTexcoordVertex::ms_decl);
|
||||
m_vbh = bgfx::createVertexBuffer(bgfx::makeRef(s_cubeVertices, sizeof(s_cubeVertices) ), PosTexcoordVertex::ms_layout);
|
||||
|
||||
// Create static index buffer.
|
||||
m_ibh = bgfx::createIndexBuffer(bgfx::makeRef(s_cubeIndices, sizeof(s_cubeIndices) ) );
|
||||
|
||||
Reference in New Issue
Block a user