mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-04-24 04:53:28 -04:00
Cleanup.
This commit is contained in:
parent
9edede219e
commit
6c13efba04
2 changed files with 3 additions and 10 deletions
examples
|
@ -646,13 +646,12 @@ struct Group
|
|||
|
||||
namespace bgfx
|
||||
{
|
||||
int32_t read(bx::ReaderI* _reader, bgfx::VertexDecl& _decl);
|
||||
int32_t read(bx::ReaderI* _reader, bgfx::VertexDecl& _decl, bx::Error* _err = NULL);
|
||||
}
|
||||
|
||||
struct Mesh
|
||||
{
|
||||
void load(const void* _vertices, uint32_t _numVertices, const bgfx::VertexDecl _decl
|
||||
, const uint16_t* _indices, uint32_t _numIndices)
|
||||
void load(const void* _vertices, uint32_t _numVertices, const bgfx::VertexDecl _decl, const uint16_t* _indices, uint32_t _numIndices)
|
||||
{
|
||||
Group group;
|
||||
const bgfx::Memory* mem;
|
||||
|
@ -666,12 +665,6 @@ struct Mesh
|
|||
mem = bgfx::makeRef(_indices, size);
|
||||
group.m_ibh = bgfx::createIndexBuffer(mem);
|
||||
|
||||
//TODO:
|
||||
// group.m_sphere = ...
|
||||
// group.m_aabb = ...
|
||||
// group.m_obb = ...
|
||||
// group.m_prims = ...
|
||||
|
||||
m_groups.push_back(group);
|
||||
}
|
||||
|
||||
|
|
|
@ -856,7 +856,7 @@ struct Group
|
|||
|
||||
namespace bgfx
|
||||
{
|
||||
int32_t read(bx::ReaderI* _reader, bgfx::VertexDecl& _decl);
|
||||
int32_t read(bx::ReaderI* _reader, bgfx::VertexDecl& _decl, bx::Error* _err = NULL);
|
||||
}
|
||||
|
||||
struct Mesh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue