This interface is used for build specific mesh pack data.
- Parameters
-
| [in] | isCreateBuffer | Whether it needs to create buffer. |
- Returns
- Returns true if Create Pack successfully.
Reimplemented from Spices::MeshPack.
Definition at line 551 of file MeshPack.cpp.
552 {
554
556
559
560 return true;
561 }
#define SPICES_PROFILE_ZONE
std::string m_Path
The mesh file path in disk.
static bool Load(const std::string &fileName, MeshPack *outMeshPack)
Public called API, it is entrance.
virtual bool OnCreatePack(bool isCreateBuffer=true)
This interface is used for build specific mesh pack data.
void CreateBuffer()
Create Vertices buffer anf Indices buffer.
References Spices::MeshPack::CreateBuffer(), Spices::MeshLoader::Load(), m_Path, and Spices::MeshPack::OnCreatePack().