Renamed constants to new style.

This commit is contained in:
Branimir Karadžić
2017-06-09 20:08:52 -07:00
parent bbdc0fbcbd
commit 3fbcddb4ef
19 changed files with 72 additions and 72 deletions

View File

@@ -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];