// Copyright (C) 2020 Jérôme Leclercq // This file is part of the "Nazara Engine - Utility module" // For conditions of distribution and use, see copyright notice in Config.hpp #include #include #include namespace Nz { Mesh::Mesh() : m_materialData(1), m_aabbUpdated(false), m_isValid(false) { } Mesh::~Mesh() { OnMeshRelease(this); Destroy(); } template MeshRef Mesh::New(Args&&... args) { std::unique_ptr object(new Mesh(std::forward(args)...)); object->SetPersistent(false); return object.release(); } } #include