Removed AxisAlignedBox (Replaced by BoundingBox)

Former-commit-id: 931dd6710caf49aeaede51efe209d714f080c44b
This commit is contained in:
Lynix
2013-02-21 18:28:32 +01:00
parent 2e6b864cad
commit 1b5215d4c2
22 changed files with 561 additions and 768 deletions

View File

@@ -39,8 +39,6 @@ bool NzStaticMesh::Create(NzVertexBuffer* vertexBuffer)
void NzStaticMesh::Destroy()
{
m_aabb.MakeNull();
if (m_indexBuffer)
{
m_indexBuffer->RemoveResourceListener(this);
@@ -62,9 +60,6 @@ void NzStaticMesh::Finish()
bool NzStaticMesh::GenerateAABB()
{
if (!m_aabb.IsNull())
return true;
// On lock le buffer pour itérer sur toutes les positions et composer notre AABB
NzBufferMapper<NzVertexBuffer> mapper(m_vertexBuffer, nzBufferAccess_ReadOnly);
@@ -79,7 +74,7 @@ bool NzStaticMesh::GenerateAABB()
return true;
}
const NzAxisAlignedBoxf& NzStaticMesh::GetAABB() const
const NzCubef& NzStaticMesh::GetAABB() const
{
return m_aabb;
}
@@ -114,7 +109,7 @@ bool NzStaticMesh::IsValid() const
return m_vertexBuffer != nullptr;
}
void NzStaticMesh::SetAABB(const NzAxisAlignedBoxf& aabb)
void NzStaticMesh::SetAABB(const NzCubef& aabb)
{
m_aabb = aabb;
}