mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-20 22:03:12 +01:00
Removed _USE_MATH_DEFINES.
This commit is contained in:
@@ -157,7 +157,7 @@ void calcObb(Obb& _obb, const void* _vertices, uint32_t _numVertices, uint32_t _
|
||||
Obb best;
|
||||
aabbToObb(best, aabb);
|
||||
|
||||
float angleStep = float(M_PI_2/_steps);
|
||||
float angleStep = float(bx::piHalf/_steps);
|
||||
float ax = 0.0f;
|
||||
float mtx[16];
|
||||
|
||||
|
||||
@@ -141,9 +141,9 @@ struct Camera
|
||||
|
||||
float right[3] =
|
||||
{
|
||||
sinf(m_horizontalAngle - float(M_PI)/2.0f),
|
||||
sinf(m_horizontalAngle - bx::piHalf),
|
||||
0,
|
||||
cosf(m_horizontalAngle - float(M_PI)/2.0f),
|
||||
cosf(m_horizontalAngle - bx::piHalf),
|
||||
};
|
||||
|
||||
if (m_keys & CAMERA_KEY_UP)
|
||||
|
||||
@@ -448,7 +448,7 @@ struct Imgui
|
||||
|
||||
for (int32_t ii = 0; ii < NUM_CIRCLE_VERTS; ++ii)
|
||||
{
|
||||
float a = (float)ii / (float)NUM_CIRCLE_VERTS * (float)(M_PI * 2.0);
|
||||
float a = (float)ii / (float)NUM_CIRCLE_VERTS * (float)(bx::pi * 2.0);
|
||||
m_circleVerts[ii * 2 + 0] = cosf(a);
|
||||
m_circleVerts[ii * 2 + 1] = sinf(a);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user