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