Upgrade Utility
This commit is contained in:
@@ -8,8 +8,7 @@
|
||||
#define NAZARA_SUBMESH_HPP
|
||||
|
||||
#include <Nazara/Prerequisites.hpp>
|
||||
#include <Nazara/Core/ObjectRef.hpp>
|
||||
#include <Nazara/Core/RefCounted.hpp>
|
||||
#include <Nazara/Core/Signal.hpp>
|
||||
#include <Nazara/Math/Box.hpp>
|
||||
#include <Nazara/Utility/Enums.hpp>
|
||||
#include <Nazara/Utility/IndexBuffer.hpp>
|
||||
@@ -18,21 +17,13 @@
|
||||
namespace Nz
|
||||
{
|
||||
class Mesh;
|
||||
class SubMesh;
|
||||
|
||||
using SubMeshConstRef = ObjectRef<const SubMesh>;
|
||||
using SubMeshRef = ObjectRef<SubMesh>;
|
||||
|
||||
class NAZARA_UTILITY_API SubMesh : public RefCounted
|
||||
class NAZARA_UTILITY_API SubMesh
|
||||
{
|
||||
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();
|
||||
@@ -43,7 +34,7 @@ namespace Nz
|
||||
|
||||
virtual const Boxf& GetAABB() const = 0;
|
||||
virtual AnimationType GetAnimationType() const = 0;
|
||||
virtual const IndexBuffer* GetIndexBuffer() const = 0;
|
||||
virtual const std::shared_ptr<const IndexBuffer>& GetIndexBuffer() const = 0;
|
||||
std::size_t GetMaterialIndex() const;
|
||||
PrimitiveMode GetPrimitiveMode() const;
|
||||
std::size_t GetTriangleCount() const;
|
||||
@@ -59,7 +50,6 @@ namespace Nz
|
||||
|
||||
// Signals:
|
||||
NazaraSignal(OnSubMeshInvalidateAABB, const SubMesh* /*subMesh*/);
|
||||
NazaraSignal(OnSubMeshRelease, const SubMesh* /*subMesh*/);
|
||||
|
||||
protected:
|
||||
PrimitiveMode m_primitiveMode;
|
||||
|
||||
Reference in New Issue
Block a user