Made use of constexpr keyword
Former-commit-id: 79bc50ffaa21947dacd18578a34f6be65285821b
This commit is contained in:
@@ -783,7 +783,7 @@ void NzGenerateBox(const NzVector3f& lengths, const NzVector3ui& subdivision, co
|
||||
|
||||
void NzGenerateCone(float length, float radius, unsigned int subdivision, const NzMatrix4f& matrix, const NzRectf& textureCoords, NzMeshVertex* vertices, NzIndexIterator indices, NzBoxf* aabb, unsigned int indexOffset)
|
||||
{
|
||||
const float round = 2.f*static_cast<float>(M_PI);
|
||||
constexpr float round = 2.f*static_cast<float>(M_PI);
|
||||
float delta = round/subdivision;
|
||||
|
||||
vertices->position = matrix.GetTranslation(); // matrix.Transform(NzVector3f(0.f));
|
||||
|
||||
Reference in New Issue
Block a user