Box primitives now uses vec3 lengths parameter
Instead of a Box parameter Former-commit-id: 6c433e883252c6db8eba3b791d1e9364ce5d3b1e
This commit is contained in:
@@ -6,20 +6,20 @@
|
||||
#include <Nazara/Core/Config.hpp>
|
||||
#include <Nazara/Core/Debug.hpp>
|
||||
|
||||
void NzPrimitiveList::AddBox(const NzBoxf& box, const NzVector3ui& subdivision, const NzMatrix4f& matrix)
|
||||
void NzPrimitiveList::AddBox(const NzVector3f& lengths, const NzVector3ui& subdivision, const NzMatrix4f& matrix)
|
||||
{
|
||||
NzPrimitive primitive;
|
||||
primitive.type = nzPrimitiveType_Box;
|
||||
primitive.box.box = box; // box.box = box, parce que je le vaux bien
|
||||
primitive.box.lengths = lengths;
|
||||
primitive.box.matrix = matrix;
|
||||
primitive.box.subdivision = subdivision;
|
||||
|
||||
m_primitives.push_back(primitive);
|
||||
}
|
||||
|
||||
void NzPrimitiveList::AddBox(const NzBoxf& box, const NzVector3ui& subdivision, const NzVector3f& position, const NzQuaternionf& rotation)
|
||||
void NzPrimitiveList::AddBox(const NzVector3f& lengths, const NzVector3ui& subdivision, const NzVector3f& position, const NzQuaternionf& rotation)
|
||||
{
|
||||
AddBox(box, subdivision, NzMatrix4f::Transform(position, rotation));
|
||||
AddBox(lengths, subdivision, NzMatrix4f::Transform(position, rotation));
|
||||
}
|
||||
|
||||
void NzPrimitiveList::AddCubicSphere(float size, unsigned int subdivision, const NzMatrix4f& matrix)
|
||||
|
||||
Reference in New Issue
Block a user