Utility/Mesh: Refactor Mesh & Submeshes
This commit is contained in:
@@ -2,11 +2,25 @@
|
||||
// This file is part of the "Nazara Engine - Utility module"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#include <Nazara/Utility/Mesh.hpp>
|
||||
#include <memory>
|
||||
#include <Nazara/Utility/Debug.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
Mesh::Mesh() :
|
||||
m_materialData(1),
|
||||
m_aabbUpdated(false)
|
||||
{
|
||||
}
|
||||
|
||||
Mesh::~Mesh()
|
||||
{
|
||||
OnMeshRelease(this);
|
||||
|
||||
Destroy();
|
||||
}
|
||||
|
||||
template<typename... Args>
|
||||
MeshRef Mesh::New(Args&&... args)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user