Removed AxisAlignedBox (Replaced by BoundingBox)
Former-commit-id: 931dd6710caf49aeaede51efe209d714f080c44b
This commit is contained in:
@@ -28,7 +28,7 @@ class NAZARA_API NzKeyframeMesh final : public NzSubMesh
|
||||
|
||||
void GenerateAABBs();
|
||||
|
||||
const NzAxisAlignedBoxf& GetAABB() const override;
|
||||
const NzCubef& GetAABB() const override;
|
||||
nzAnimationType GetAnimationType() const override;
|
||||
unsigned int GetFrameCount() const;
|
||||
const NzIndexBuffer* GetIndexBuffer() const override;
|
||||
@@ -46,7 +46,7 @@ class NAZARA_API NzKeyframeMesh final : public NzSubMesh
|
||||
bool IsAnimated() const override;
|
||||
bool IsValid();
|
||||
|
||||
void SetAABB(unsigned int frameIndex, const NzAxisAlignedBoxf& aabb);
|
||||
void SetAABB(unsigned int frameIndex, const NzCubef& aabb);
|
||||
void SetIndexBuffer(const NzIndexBuffer* indexBuffer);
|
||||
void SetNormal(unsigned int frameIndex, unsigned int vertexIndex, const NzVector3f& normal);
|
||||
void SetPosition(unsigned int frameIndex, unsigned int vertexIndex, const NzVector3f& position);
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <Nazara/Core/ResourceListener.hpp>
|
||||
#include <Nazara/Core/ResourceLoader.hpp>
|
||||
#include <Nazara/Core/String.hpp>
|
||||
#include <Nazara/Math/AxisAlignedBox.hpp>
|
||||
#include <Nazara/Math/Cube.hpp>
|
||||
#include <Nazara/Utility/Skeleton.hpp>
|
||||
#include <Nazara/Utility/SubMesh.hpp>
|
||||
#include <Nazara/Utility/VertexStruct.hpp>
|
||||
@@ -59,7 +59,7 @@ class NAZARA_API NzMesh : public NzResource, NzResourceListener
|
||||
void GenerateNormalsAndTangents();
|
||||
void GenerateTangents();
|
||||
|
||||
const NzAxisAlignedBoxf& GetAABB() const;
|
||||
const NzCubef& GetAABB() const;
|
||||
NzString GetAnimation() const;
|
||||
nzAnimationType GetAnimationType() const;
|
||||
unsigned int GetJointCount() const;
|
||||
|
||||
@@ -37,7 +37,7 @@ class NAZARA_API NzSkeletalMesh final : public NzSubMesh
|
||||
|
||||
void Finish();
|
||||
|
||||
const NzAxisAlignedBoxf& GetAABB() const;
|
||||
const NzCubef& GetAABB() const;
|
||||
nzAnimationType GetAnimationType() const final;
|
||||
void* GetBindPoseBuffer();
|
||||
const void* GetBindPoseBuffer() const;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#define NAZARA_SKELETON_HPP
|
||||
|
||||
#include <Nazara/Prerequesites.hpp>
|
||||
#include <Nazara/Math/AxisAlignedBox.hpp>
|
||||
#include <Nazara/Math/Cube.hpp>
|
||||
#include <Nazara/Utility/Joint.hpp>
|
||||
#include <vector>
|
||||
|
||||
@@ -26,7 +26,7 @@ class NAZARA_API NzSkeleton
|
||||
bool Create(unsigned int jointCount);
|
||||
void Destroy();
|
||||
|
||||
const NzAxisAlignedBoxf& GetAABB() const;
|
||||
const NzCubef& GetAABB() const;
|
||||
NzJoint* GetJoint(const NzString& jointName);
|
||||
NzJoint* GetJoint(unsigned int index);
|
||||
const NzJoint* GetJoint(const NzString& jointName) const;
|
||||
|
||||
@@ -24,7 +24,7 @@ class NAZARA_API NzStaticMesh final : public NzSubMesh, NzResourceListener
|
||||
|
||||
bool GenerateAABB();
|
||||
|
||||
const NzAxisAlignedBoxf& GetAABB() const override;
|
||||
const NzCubef& GetAABB() const override;
|
||||
nzAnimationType GetAnimationType() const final;
|
||||
const NzIndexBuffer* GetIndexBuffer() const override;
|
||||
NzVertexBuffer* GetVertexBuffer() override;
|
||||
@@ -33,13 +33,13 @@ class NAZARA_API NzStaticMesh final : public NzSubMesh, NzResourceListener
|
||||
bool IsAnimated() const final;
|
||||
bool IsValid() const;
|
||||
|
||||
void SetAABB(const NzAxisAlignedBoxf& aabb);
|
||||
void SetAABB(const NzCubef& aabb);
|
||||
void SetIndexBuffer(const NzIndexBuffer* indexBuffer);
|
||||
|
||||
private:
|
||||
void OnResourceReleased(const NzResource* resource, int index) override;
|
||||
|
||||
NzAxisAlignedBoxf m_aabb;
|
||||
NzCubef m_aabb;
|
||||
const NzIndexBuffer* m_indexBuffer = nullptr;
|
||||
NzVertexBuffer* m_vertexBuffer = nullptr;
|
||||
};
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#include <Nazara/Prerequesites.hpp>
|
||||
#include <Nazara/Core/Resource.hpp>
|
||||
#include <Nazara/Math/AxisAlignedBox.hpp>
|
||||
#include <Nazara/Math/Cube.hpp>
|
||||
#include <Nazara/Utility/Enums.hpp>
|
||||
#include <Nazara/Utility/IndexBuffer.hpp>
|
||||
#include <Nazara/Utility/VertexBuffer.hpp>
|
||||
@@ -27,7 +27,7 @@ class NAZARA_API NzSubMesh : public NzResource
|
||||
|
||||
virtual void Finish() = 0; ///DOC: Mets le mesh dans sa position d'origine et calcule son AABB
|
||||
|
||||
virtual const NzAxisAlignedBoxf& GetAABB() const = 0;
|
||||
virtual const NzCubef& GetAABB() const = 0;
|
||||
virtual nzAnimationType GetAnimationType() const = 0;
|
||||
virtual const NzIndexBuffer* GetIndexBuffer() const = 0;
|
||||
unsigned int GetMaterialIndex() const;
|
||||
|
||||
Reference in New Issue
Block a user