diff options
author | jjesswan <jessica_wan@brown.edu> | 2024-05-07 06:03:03 -0400 |
---|---|---|
committer | jjesswan <jessica_wan@brown.edu> | 2024-05-07 06:03:03 -0400 |
commit | 675391d07f50d0067e7bab983433c6d86f5f8256 (patch) | |
tree | 65a857125b91502974bceb40e24c1c7eff4bad59 /glm-master/test/core/core_setup_precision.cpp | |
parent | 6a45579dbbf991c0e12ce59958e3b533d19fc9d4 (diff) |
remove glm
Diffstat (limited to 'glm-master/test/core/core_setup_precision.cpp')
-rw-r--r-- | glm-master/test/core/core_setup_precision.cpp | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/glm-master/test/core/core_setup_precision.cpp b/glm-master/test/core/core_setup_precision.cpp deleted file mode 100644 index b44bc50..0000000 --- a/glm-master/test/core/core_setup_precision.cpp +++ /dev/null @@ -1,58 +0,0 @@ -#define GLM_FORCE_INLINE -#define GLM_PRECISION_HIGHP_FLOAT -#include <glm/glm.hpp> -#include <glm/ext.hpp> - -static int test_mat() -{ - int Error = 0; - - Error += sizeof(glm::mat2) == sizeof(glm::highp_mat2) ? 0 : 1; - Error += sizeof(glm::mat3) == sizeof(glm::highp_mat3) ? 0 : 1; - Error += sizeof(glm::mat4) == sizeof(glm::highp_mat4) ? 0 : 1; - - Error += sizeof(glm::mat2x2) == sizeof(glm::highp_mat2x2) ? 0 : 1; - Error += sizeof(glm::mat2x3) == sizeof(glm::highp_mat2x3) ? 0 : 1; - Error += sizeof(glm::mat2x4) == sizeof(glm::highp_mat2x4) ? 0 : 1; - Error += sizeof(glm::mat3x2) == sizeof(glm::highp_mat3x2) ? 0 : 1; - Error += sizeof(glm::mat3x3) == sizeof(glm::highp_mat3x3) ? 0 : 1; - Error += sizeof(glm::mat3x4) == sizeof(glm::highp_mat3x4) ? 0 : 1; - Error += sizeof(glm::mat4x2) == sizeof(glm::highp_mat4x2) ? 0 : 1; - Error += sizeof(glm::mat4x3) == sizeof(glm::highp_mat4x3) ? 0 : 1; - Error += sizeof(glm::mat4x4) == sizeof(glm::highp_mat4x4) ? 0 : 1; - - return Error; -} - -static int test_vec() -{ - int Error = 0; - - Error += sizeof(glm::vec2) == sizeof(glm::highp_vec2) ? 0 : 1; - Error += sizeof(glm::vec3) == sizeof(glm::highp_vec3) ? 0 : 1; - Error += sizeof(glm::vec4) == sizeof(glm::highp_vec4) ? 0 : 1; - - return Error; -} - -static int test_dvec() -{ - int Error = 0; - - Error += sizeof(glm::dvec2) == sizeof(glm::highp_dvec2) ? 0 : 1; - Error += sizeof(glm::dvec3) == sizeof(glm::highp_dvec3) ? 0 : 1; - Error += sizeof(glm::dvec4) == sizeof(glm::highp_dvec4) ? 0 : 1; - - return Error; -} - -int main() -{ - int Error = 0; - - Error += test_mat(); - Error += test_vec(); - Error += test_dvec(); - - return Error; -} |