Utility/Mesh: Add MeshSaver properly

Former-commit-id: 08a7fb99853e68e692e1346577c8d616c1f4a6f9 [formerly 626e980416ee0ceea15036bd6355321400a19475]
Former-commit-id: d39fd4d74d2d58c14057b0f769ceb7ce120c103a
This commit is contained in:
Lynix
2016-07-12 08:11:25 +02:00
parent ce8461ca35
commit 6084ff1707
2 changed files with 14 additions and 0 deletions

View File

@@ -606,6 +606,16 @@ namespace Nz
InvalidateAABB();
}
bool Mesh::SaveToFile(const String& filePath, const MeshParams& params)
{
return MeshSaver::SaveToFile(*this, filePath, params);
}
bool Mesh::SaveToStream(Stream& stream, const String& format, const MeshParams& params)
{
return MeshSaver::SaveToStream(*this, stream, format, params);
}
void Mesh::SetAnimation(const String& animationPath)
{
NazaraAssert(m_impl, "Mesh should be created first");