Rename VertexDecl to VertexLayout

This commit is contained in:
Leandro Freire
2019-08-13 10:04:51 +01:00
committed by Бранимир Караџић
parent 6bd22840e7
commit 855623e153
68 changed files with 660 additions and 660 deletions

View File

@@ -150,7 +150,7 @@ void writeCompressedVertices(bx::WriterI* _writer, const uint8_t* _vertices, ui
free(compressedVertices);
}
void calcTangents(void* _vertices, uint16_t _numVertices, bgfx::VertexDecl _decl, const uint16_t* _indices, uint32_t _numIndices)
void calcTangents(void* _vertices, uint16_t _numVertices, bgfx::VertexLayout _decl, const uint16_t* _indices, uint32_t _numIndices)
{
struct PosTexcoord
{
@@ -276,7 +276,7 @@ void write(bx::WriterI* _writer, const void* _vertices, uint32_t _numVertices, u
void write(bx::WriterI* _writer
, const uint8_t* _vertices
, uint32_t _numVertices
, const bgfx::VertexDecl& _decl
, const bgfx::VertexLayout& _decl
, const uint16_t* _indices
, uint32_t _numIndices
, bool _compress
@@ -793,7 +793,7 @@ int main(int _argc, const char* _argv[])
}
}
bgfx::VertexDecl decl;
bgfx::VertexLayout decl;
decl.begin();
decl.add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float);

View File

@@ -906,10 +906,10 @@ struct PosUvwColorVertex
m_abgr = _abgr;
}
static bgfx::VertexDecl ms_decl;
static bgfx::VertexLayout ms_decl;
};
bgfx::VertexDecl PosUvwColorVertex::ms_decl;
bgfx::VertexLayout PosUvwColorVertex::ms_decl;
static uint32_t addQuad(uint16_t* _indices, uint16_t _idx0, uint16_t _idx1, uint16_t _idx2, uint16_t _idx3)
{