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
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user