From c6b7592246cbbb138d4bb06fb67fd83aa9124c06 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Fri, 11 Mar 2011 02:09:33 +0000 Subject: [PATCH] Added files for extension tests --- test/gtc/CMakeLists.txt | 11 +++++++++-- test/gtc/gtc_half_float.cpp | 19 +++++++++++++++++++ test/gtc/gtc_matrix_access.cpp | 19 +++++++++++++++++++ ...eger-matrix.cpp => gtc_matrix_integer.cpp} | 12 +----------- test/gtc/gtc_matrix_inverse.cpp | 19 +++++++++++++++++++ test/gtc/gtc_matrix_transform.cpp | 19 +++++++++++++++++++ test/gtc/gtc_quaternion.cpp | 19 +++++++++++++++++++ test/gtc/{gtc-swizzle.cpp => gtc_swizzle.cpp} | 2 +- test/gtc/gtc_type_precision.cpp | 19 +++++++++++++++++++ test/gtc/gtc_type_ptr.cpp | 19 +++++++++++++++++++ 10 files changed, 144 insertions(+), 14 deletions(-) create mode 100644 test/gtc/gtc_half_float.cpp create mode 100644 test/gtc/gtc_matrix_access.cpp rename test/gtc/{gtc-integer-matrix.cpp => gtc_matrix_integer.cpp} (81%) create mode 100644 test/gtc/gtc_matrix_inverse.cpp create mode 100644 test/gtc/gtc_matrix_transform.cpp create mode 100644 test/gtc/gtc_quaternion.cpp rename test/gtc/{gtc-swizzle.cpp => gtc_swizzle.cpp} (98%) create mode 100644 test/gtc/gtc_type_precision.cpp create mode 100644 test/gtc/gtc_type_ptr.cpp diff --git a/test/gtc/CMakeLists.txt b/test/gtc/CMakeLists.txt index 7dc18c00..aa58bcf0 100644 --- a/test/gtc/CMakeLists.txt +++ b/test/gtc/CMakeLists.txt @@ -1,2 +1,9 @@ -glmCreateTestGTC(gtc-integer-matrix) -glmCreateTestGTC(gtc-swizzle) \ No newline at end of file +glmCreateTestGTC(gtc_half_float) +glmCreateTestGTC(gtc_matrix_access) +glmCreateTestGTC(gtc_matrix_integer) +glmCreateTestGTC(gtc_matrix_inverse) +glmCreateTestGTC(gtc_matrix_transform) +glmCreateTestGTC(gtc_quaternion) +glmCreateTestGTC(gtc_swizzle) +glmCreateTestGTC(gtc_type_precision) +glmCreateTestGTC(gtc_type_ptr) diff --git a/test/gtc/gtc_half_float.cpp b/test/gtc/gtc_half_float.cpp new file mode 100644 index 00000000..0b9bc908 --- /dev/null +++ b/test/gtc/gtc_half_float.cpp @@ -0,0 +1,19 @@ +/////////////////////////////////////////////////////////////////////////////////////////////////// +// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net) +/////////////////////////////////////////////////////////////////////////////////////////////////// +// Created : 2010-09-16 +// Updated : 2010-09-16 +// Licence : This source is under MIT licence +// File : test/gtc/matrix_transform.cpp +/////////////////////////////////////////////////////////////////////////////////////////////////// + +#define GLM_MESSAGES +#include +#include + +int main() +{ + int Failed = 0; + + return Failed; +} diff --git a/test/gtc/gtc_matrix_access.cpp b/test/gtc/gtc_matrix_access.cpp new file mode 100644 index 00000000..0b9bc908 --- /dev/null +++ b/test/gtc/gtc_matrix_access.cpp @@ -0,0 +1,19 @@ +/////////////////////////////////////////////////////////////////////////////////////////////////// +// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net) +/////////////////////////////////////////////////////////////////////////////////////////////////// +// Created : 2010-09-16 +// Updated : 2010-09-16 +// Licence : This source is under MIT licence +// File : test/gtc/matrix_transform.cpp +/////////////////////////////////////////////////////////////////////////////////////////////////// + +#define GLM_MESSAGES +#include +#include + +int main() +{ + int Failed = 0; + + return Failed; +} diff --git a/test/gtc/gtc-integer-matrix.cpp b/test/gtc/gtc_matrix_integer.cpp similarity index 81% rename from test/gtc/gtc-integer-matrix.cpp rename to test/gtc/gtc_matrix_integer.cpp index b6b06c11..48686de0 100644 --- a/test/gtc/gtc-integer-matrix.cpp +++ b/test/gtc/gtc_matrix_integer.cpp @@ -4,26 +4,16 @@ // Created : 2010-09-16 // Updated : 2010-09-16 // Licence : This source is under MIT licence -// File : test/gtx/simd-mat4.cpp +// File : test/gtc/matrix_integer.cpp /////////////////////////////////////////////////////////////////////////////////////////////////// #define GLM_MESSAGES #include #include -int test_int_matrix() -{ - { - glm::mediump_uint A(0); - } - - return 0; -} - int main() { int Failed = 0; - Failed += test_int_matrix(); return Failed; } diff --git a/test/gtc/gtc_matrix_inverse.cpp b/test/gtc/gtc_matrix_inverse.cpp new file mode 100644 index 00000000..0b9bc908 --- /dev/null +++ b/test/gtc/gtc_matrix_inverse.cpp @@ -0,0 +1,19 @@ +/////////////////////////////////////////////////////////////////////////////////////////////////// +// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net) +/////////////////////////////////////////////////////////////////////////////////////////////////// +// Created : 2010-09-16 +// Updated : 2010-09-16 +// Licence : This source is under MIT licence +// File : test/gtc/matrix_transform.cpp +/////////////////////////////////////////////////////////////////////////////////////////////////// + +#define GLM_MESSAGES +#include +#include + +int main() +{ + int Failed = 0; + + return Failed; +} diff --git a/test/gtc/gtc_matrix_transform.cpp b/test/gtc/gtc_matrix_transform.cpp new file mode 100644 index 00000000..0b9bc908 --- /dev/null +++ b/test/gtc/gtc_matrix_transform.cpp @@ -0,0 +1,19 @@ +/////////////////////////////////////////////////////////////////////////////////////////////////// +// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net) +/////////////////////////////////////////////////////////////////////////////////////////////////// +// Created : 2010-09-16 +// Updated : 2010-09-16 +// Licence : This source is under MIT licence +// File : test/gtc/matrix_transform.cpp +/////////////////////////////////////////////////////////////////////////////////////////////////// + +#define GLM_MESSAGES +#include +#include + +int main() +{ + int Failed = 0; + + return Failed; +} diff --git a/test/gtc/gtc_quaternion.cpp b/test/gtc/gtc_quaternion.cpp new file mode 100644 index 00000000..0b9bc908 --- /dev/null +++ b/test/gtc/gtc_quaternion.cpp @@ -0,0 +1,19 @@ +/////////////////////////////////////////////////////////////////////////////////////////////////// +// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net) +/////////////////////////////////////////////////////////////////////////////////////////////////// +// Created : 2010-09-16 +// Updated : 2010-09-16 +// Licence : This source is under MIT licence +// File : test/gtc/matrix_transform.cpp +/////////////////////////////////////////////////////////////////////////////////////////////////// + +#define GLM_MESSAGES +#include +#include + +int main() +{ + int Failed = 0; + + return Failed; +} diff --git a/test/gtc/gtc-swizzle.cpp b/test/gtc/gtc_swizzle.cpp similarity index 98% rename from test/gtc/gtc-swizzle.cpp rename to test/gtc/gtc_swizzle.cpp index 917976d6..0371c20a 100644 --- a/test/gtc/gtc-swizzle.cpp +++ b/test/gtc/gtc_swizzle.cpp @@ -4,7 +4,7 @@ // Created : 2010-09-16 // Updated : 2010-09-16 // Licence : This source is under MIT licence -// File : test/gtx/simd-mat4.cpp +// File : test/gtc/swizzle.cpp /////////////////////////////////////////////////////////////////////////////////////////////////// #define GLM_MESSAGES diff --git a/test/gtc/gtc_type_precision.cpp b/test/gtc/gtc_type_precision.cpp new file mode 100644 index 00000000..0b9bc908 --- /dev/null +++ b/test/gtc/gtc_type_precision.cpp @@ -0,0 +1,19 @@ +/////////////////////////////////////////////////////////////////////////////////////////////////// +// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net) +/////////////////////////////////////////////////////////////////////////////////////////////////// +// Created : 2010-09-16 +// Updated : 2010-09-16 +// Licence : This source is under MIT licence +// File : test/gtc/matrix_transform.cpp +/////////////////////////////////////////////////////////////////////////////////////////////////// + +#define GLM_MESSAGES +#include +#include + +int main() +{ + int Failed = 0; + + return Failed; +} diff --git a/test/gtc/gtc_type_ptr.cpp b/test/gtc/gtc_type_ptr.cpp new file mode 100644 index 00000000..0b9bc908 --- /dev/null +++ b/test/gtc/gtc_type_ptr.cpp @@ -0,0 +1,19 @@ +/////////////////////////////////////////////////////////////////////////////////////////////////// +// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net) +/////////////////////////////////////////////////////////////////////////////////////////////////// +// Created : 2010-09-16 +// Updated : 2010-09-16 +// Licence : This source is under MIT licence +// File : test/gtc/matrix_transform.cpp +/////////////////////////////////////////////////////////////////////////////////////////////////// + +#define GLM_MESSAGES +#include +#include + +int main() +{ + int Failed = 0; + + return Failed; +}