Utility/Mesh: Refactor Mesh & Submeshes
This commit is contained in:
@@ -28,7 +28,13 @@ namespace Nz
|
||||
friend Mesh;
|
||||
|
||||
public:
|
||||
SubMesh();
|
||||
|
||||
NAZARA_DEPRECATED("Submesh constructor taking a mesh is deprecated, submeshes no longer require to be part of a single mesh")
|
||||
SubMesh(const Mesh* parent);
|
||||
|
||||
SubMesh(const SubMesh&) = delete;
|
||||
SubMesh(SubMesh&&) = delete;
|
||||
virtual ~SubMesh();
|
||||
|
||||
void GenerateNormals();
|
||||
@@ -39,7 +45,6 @@ namespace Nz
|
||||
virtual AnimationType GetAnimationType() const = 0;
|
||||
virtual const IndexBuffer* GetIndexBuffer() const = 0;
|
||||
UInt32 GetMaterialIndex() const;
|
||||
const Mesh* GetParent() const;
|
||||
PrimitiveMode GetPrimitiveMode() const;
|
||||
UInt32 GetTriangleCount() const;
|
||||
virtual UInt32 GetVertexCount() const = 0;
|
||||
@@ -49,12 +54,15 @@ namespace Nz
|
||||
void SetMaterialIndex(UInt32 matIndex);
|
||||
void SetPrimitiveMode(PrimitiveMode mode);
|
||||
|
||||
SubMesh& operator=(const SubMesh&) = delete;
|
||||
SubMesh& operator=(SubMesh&&) = delete;
|
||||
|
||||
// Signals:
|
||||
NazaraSignal(OnSubMeshInvalidateAABB, const SubMesh* /*subMesh*/);
|
||||
NazaraSignal(OnSubMeshRelease, const SubMesh* /*subMesh*/);
|
||||
|
||||
protected:
|
||||
PrimitiveMode m_primitiveMode;
|
||||
const Mesh* m_parent;
|
||||
UInt32 m_matIndex;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user