/////////////////////////////////////////////////////////////////////////////////////////////////// // OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net) /////////////////////////////////////////////////////////////////////////////////////////////////// // Created : 2008-08-31 // Updated : 2011-05-06 // Licence : This source is under MIT License // File : test/core/type_float.cpp /////////////////////////////////////////////////////////////////////////////////////////////////// #include int test_float_size() { return sizeof(glm::float_t) != sizeof(glm::lowp_float) && sizeof(glm::float_t) != sizeof(glm::mediump_float) && sizeof(glm::float_t) != sizeof(glm::highp_float); } int test_float_precision() { return ( sizeof(glm::lowp_float) <= sizeof(glm::mediump_float) && sizeof(glm::mediump_float) <= sizeof(glm::highp_float)) ? 0 : 1; } int test_vec2() { return 0; } int main() { int Error = 0; Error += test_float_size(); Error += test_float_precision(); return Error; }