Added test files and fixed build errors for experimental extensions.

This commit is contained in:
Christophe Riccio
2013-10-27 22:38:22 +00:00
parent 2e72af3f6d
commit fbb54649b7
41 changed files with 283 additions and 318 deletions

View File

@@ -12,7 +12,7 @@
int test_areCollinear()
{
int Error(0);
int Error(0);
{
bool TestA = glm::areCollinear(glm::vec2(-1), glm::vec2(1), 0.00001f);
@@ -29,47 +29,47 @@ int test_areCollinear()
Error += TestA ? 0 : 1;
}
return Error;
return Error;
}
int test_areOrthogonal()
{
int Error(0);
int Error(0);
bool TestA = glm::areOrthogonal(glm::vec2(1, 0), glm::vec2(0, 1), 0.00001f);
Error += TestA ? 0 : 1;
Error += TestA ? 0 : 1;
return Error;
return Error;
}
int test_isNormalized()
{
int Error(0);
int Error(0);
bool TestA = glm::isNormalized(glm::vec4(1, 0, 0, 0), 0.00001f);
Error += TestA ? 0 : 1;
Error += TestA ? 0 : 1;
return Error;
return Error;
}
int test_isNull()
{
int Error(0);
int Error(0);
bool TestA = glm::isNull(glm::vec4(0), 0.00001f);
Error += TestA ? 0 : 1;
Error += TestA ? 0 : 1;
return Error;
return Error;
}
int test_areOrthonormal()
{
int Error(0);
bool TestA = glm::areOrthonormal(glm::vec2(1, 0), glm::vec2(0, 1), 0.00001f);
Error += TestA ? 0 : 1;
int Error(0);
return Error;
bool TestA = glm::areOrthonormal(glm::vec2(1, 0), glm::vec2(0, 1), 0.00001f);
Error += TestA ? 0 : 1;
return Error;
}
int main()