Utility/Mesh: Add MeshSaver properly

Former-commit-id: 1f6f19faaa6b7cbd978dbdee1351683e2ba05a2b [formerly 1ea64fb952d6eb8b5ba0d6cbe672767a6e7c703d]
Former-commit-id: 9e84e1c65ef9acebf90ca58d861cb118ea201c8d
This commit is contained in:
Lynix
2016-07-12 08:11:25 +02:00
parent b44cf8d361
commit b99e945ef3
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");