Added initial implementation for forward declarations: int and float scalar types, #56

This commit is contained in:
Christophe Riccio
2013-03-31 01:16:13 +01:00
parent 6a96cd819a
commit 39cf417691
16 changed files with 504 additions and 421 deletions

View File

@@ -254,6 +254,13 @@ int test_model()
return Error;
}
int test_cpp_version()
{
std::cout << "__cplusplus: " << __cplusplus << std::endl;
return 0;
}
int test_operators()
{
glm::vec3 A(1.0f);
@@ -268,6 +275,7 @@ int main()
{
int Error = 0;
Error += test_cpp_version();
Error += test_compiler();
Error += test_model();
Error += test_operators();

View File

@@ -11,7 +11,7 @@
#include <glm/gtc/random.hpp>
#include <glm/gtc/epsilon.hpp>
#include <iostream>
#if(GLM_LANG & GLM_LANG_CXX0X)
#if((GLM_LANG & GLM_LANG_CXX0X) == GLM_LANG_CXX0X)
# include <array>
#endif
@@ -139,7 +139,7 @@ int test_ballRand()
return Error;
}
#if(GLM_LANG & GLM_LANG_CXX0X)
#if((GLM_LANG & GLM_LANG_CXX0X) == GLM_LANG_CXX0X)
int test_grid()
{
int Error = 0;
@@ -188,6 +188,9 @@ int main()
Error += test_sphericalRand();
Error += test_diskRand();
Error += test_ballRand();
#if((GLM_LANG & GLM_LANG_CXX0X) == GLM_LANG_CXX0X)
Error += test_grid();
#endif
return Error;
}