From 9fbf421f13b5f22d4cc025f2a0c60e604b2750bc Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Tue, 31 May 2011 16:46:13 +0100 Subject: [PATCH] Added quaternion test --- test/gtc/gtc_quaternion.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/gtc/gtc_quaternion.cpp b/test/gtc/gtc_quaternion.cpp index 7bd07c07..a84b03be 100644 --- a/test/gtc/gtc_quaternion.cpp +++ b/test/gtc/gtc_quaternion.cpp @@ -11,6 +11,16 @@ #include #include +int test_quat_precision() +{ + int Error = 0; + + Error += sizeof(glm::lowp_quat) <= sizeof(glm::mediump_quat) ? 0 : 1; + Error += sizeof(glm::mediump_quat) <= sizeof(glm::highp_quat) ? 0 : 1; + + return Error; +} + int test_quat_type() { glm::quat A; @@ -75,6 +85,7 @@ int main() { int Error = 0; + Error += test_quat_precision(); Error += test_quat_type(); Error += test_quat_slerp(); Error += test_quat_length();