Enable /WX, warning as error on Visual Studio
This commit is contained in:
@@ -43,21 +43,24 @@ int test_quat_shortMix()
|
||||
|
||||
int test_orientation()
|
||||
{
|
||||
int Error(0);
|
||||
int Error = 0;
|
||||
|
||||
{
|
||||
glm::quat q(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
float p = glm::roll(q);
|
||||
Error += glm::epsilonEqual(p, glm::pi<float>() * 0.5f, 0.0001f) ? 0 : 1;
|
||||
}
|
||||
|
||||
{
|
||||
glm::quat q(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
float p = glm::pitch(q);
|
||||
Error += glm::epsilonEqual(p, 0.f, 0.0001f) ? 0 : 1;
|
||||
}
|
||||
|
||||
{
|
||||
glm::quat q(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
float p = glm::yaw(q);
|
||||
Error += glm::epsilonEqual(p, 0.f, 0.0001f) ? 0 : 1;
|
||||
}
|
||||
|
||||
return Error;
|
||||
@@ -113,6 +116,7 @@ int main()
|
||||
|
||||
Error += test_log();
|
||||
Error += test_rotation();
|
||||
Error += test_orientation();
|
||||
Error += test_quat_fastMix();
|
||||
Error += test_quat_shortMix();
|
||||
Error += test_quat_lookAt();
|
||||
|
||||
Reference in New Issue
Block a user