Moved AxisAlignedBox to mathematic module

Former-commit-id: 2cb5b151941a431b5c12457f0decf7b39195052d
This commit is contained in:
Lynix
2013-02-19 12:32:11 +01:00
parent d56900fe01
commit add363a290
21 changed files with 762 additions and 399 deletions

View File

@@ -132,7 +132,7 @@ struct NzSkeletalMeshImpl
{
std::vector<NzVertexWeight> vertexWeights;
std::vector<NzWeight> weights;
NzAxisAlignedBox aabb;
NzAxisAlignedBoxf aabb;
nzUInt8* bindPoseBuffer;
const NzIndexBuffer* indexBuffer = nullptr;
NzVertexBuffer* vertexBuffer;
@@ -208,13 +208,15 @@ void NzSkeletalMesh::Finish()
Skin();
}
const NzAxisAlignedBox& NzSkeletalMesh::GetAABB() const
const NzAxisAlignedBoxf& NzSkeletalMesh::GetAABB() const
{
#if NAZARA_UTILITY_SAFE
if (!m_impl)
{
NazaraError("Skeletal mesh not created");
return NzAxisAlignedBox::Null;
static NzAxisAlignedBoxf dummy(nzExtend_Null);
return dummy;
}
#endif