mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Renamed constants to new style.
This commit is contained in:
@@ -495,7 +495,7 @@ struct DebugDraw
|
||||
Mesh::Enum id = Mesh::Enum(Mesh::Cone0+mesh);
|
||||
|
||||
const uint32_t num = getCircleLod(uint8_t(mesh) );
|
||||
const float step = bx::pi * 2.0f / num;
|
||||
const float step = bx::kPi * 2.0f / num;
|
||||
|
||||
const uint32_t numVertices = num+1;
|
||||
const uint32_t numIndices = num*6;
|
||||
@@ -556,7 +556,7 @@ struct DebugDraw
|
||||
Mesh::Enum id = Mesh::Enum(Mesh::Cylinder0+mesh);
|
||||
|
||||
const uint32_t num = getCircleLod(uint8_t(mesh) );
|
||||
const float step = bx::pi * 2.0f / num;
|
||||
const float step = bx::kPi * 2.0f / num;
|
||||
|
||||
const uint32_t numVertices = num*2;
|
||||
const uint32_t numIndices = num*12;
|
||||
@@ -626,7 +626,7 @@ struct DebugDraw
|
||||
Mesh::Enum id = Mesh::Enum(Mesh::Capsule0+mesh);
|
||||
|
||||
const uint32_t num = getCircleLod(uint8_t(mesh) );
|
||||
const float step = bx::pi * 2.0f / num;
|
||||
const float step = bx::kPi * 2.0f / num;
|
||||
|
||||
const uint32_t numVertices = num*2;
|
||||
const uint32_t numIndices = num*6;
|
||||
@@ -1202,7 +1202,7 @@ struct DebugDraw
|
||||
{
|
||||
const Attrib& attrib = m_attrib[m_stack];
|
||||
const uint32_t num = getCircleLod(attrib.m_lod);
|
||||
const float step = bx::pi * 2.0f / num;
|
||||
const float step = bx::kPi * 2.0f / num;
|
||||
|
||||
_degrees = bx::fwrap(_degrees, 360.0f);
|
||||
|
||||
@@ -1244,7 +1244,7 @@ struct DebugDraw
|
||||
{
|
||||
const Attrib& attrib = m_attrib[m_stack];
|
||||
const uint32_t num = getCircleLod(attrib.m_lod);
|
||||
const float step = bx::pi * 2.0f / num;
|
||||
const float step = bx::kPi * 2.0f / num;
|
||||
_weight = bx::fclamp(_weight, 0.0f, 2.0f);
|
||||
|
||||
float udir[3];
|
||||
@@ -1291,7 +1291,7 @@ struct DebugDraw
|
||||
{
|
||||
const Attrib& attrib = m_attrib[m_stack];
|
||||
const uint32_t num = getCircleLod(attrib.m_lod);
|
||||
const float step = bx::pi * 2.0f / num;
|
||||
const float step = bx::kPi * 2.0f / num;
|
||||
_weight = bx::fclamp(_weight, 0.0f, 2.0f);
|
||||
|
||||
float xy0[2];
|
||||
|
||||
Reference in New Issue
Block a user