Move noise, random and ulp test to GTC tests

This commit is contained in:
Christophe Riccio 2012-04-07 00:36:15 +01:00
parent 543062d325
commit b2f0f4d3f9
7 changed files with 17 additions and 9 deletions

View File

@ -22,5 +22,8 @@
/////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////
#if(defined(GLM_MESSAGES)) #if(defined(GLM_MESSAGES))
# pragma message("GLM: GLM_GTX_random extension is deprecated, include GLM_GTC_random instead") # pragma message("GLM: GLM_GTX_random extension is deprecated, include GLM_GTC_random (glm/gtc/noise.hpp) instead")
#endif #endif
// Promoted:
#include "../gtc/noise.hpp"

View File

@ -24,3 +24,6 @@
#if(defined(GLM_MESSAGES)) #if(defined(GLM_MESSAGES))
# pragma message("GLM: GLM_GTX_random extension is deprecated, include GLM_GTC_random instead") # pragma message("GLM: GLM_GTX_random extension is deprecated, include GLM_GTC_random instead")
#endif #endif
// Promoted:
#include "../gtc/random.hpp"

View File

@ -22,5 +22,8 @@
/////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////
#if(defined(GLM_MESSAGES)) #if(defined(GLM_MESSAGES))
# pragma message("GLM: GLM_GTX_ulp extension is deprecated, include GLM_GTC_ulp instead") # pragma message("GLM: GLM_GTX_ulp extension is deprecated, include GLM_GTC_ulp (glm/gtc/ulp.hpp) instead")
#endif #endif
// Promoted:
#include "../gtc/ulp.hpp"

View File

@ -9,3 +9,4 @@ glmCreateTestGTC(gtc_random)
glmCreateTestGTC(gtc_swizzle) glmCreateTestGTC(gtc_swizzle)
glmCreateTestGTC(gtc_type_precision) glmCreateTestGTC(gtc_type_precision)
glmCreateTestGTC(gtc_type_ptr) glmCreateTestGTC(gtc_type_ptr)
glmCreateTestGTC(gtc_ulp)

View File

@ -4,11 +4,9 @@ glmCreateTestGTC(gtx_integer)
glmCreateTestGTC(gtx_matrix_query) glmCreateTestGTC(gtx_matrix_query)
glmCreateTestGTC(gtx_noise) glmCreateTestGTC(gtx_noise)
glmCreateTestGTC(gtx_quaternion) glmCreateTestGTC(gtx_quaternion)
glmCreateTestGTC(gtx_random)
glmCreateTestGTC(gtx_rotate_vector) glmCreateTestGTC(gtx_rotate_vector)
glmCreateTestGTC(gtx_simd_vec4) glmCreateTestGTC(gtx_simd_vec4)
glmCreateTestGTC(gtx_simd_mat4) glmCreateTestGTC(gtx_simd_mat4)
glmCreateTestGTC(gtx_string_cast) glmCreateTestGTC(gtx_string_cast)
glmCreateTestGTC(gtx_ulp)
glmCreateTestGTC(gtx_vector_angle) glmCreateTestGTC(gtx_vector_angle)
glmCreateTestGTC(gtx_vector_query) glmCreateTestGTC(gtx_vector_query)

View File

@ -10,7 +10,7 @@
#include <glm/glm.hpp> #include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/quaternion.hpp> #include <glm/gtc/quaternion.hpp>
#include <glm/gtx/random.hpp> #include <glm/gtc/random.hpp>
#include <glm/gtx/simd_vec4.hpp> #include <glm/gtx/simd_vec4.hpp>
#include <glm/gtx/simd_mat4.hpp> #include <glm/gtx/simd_mat4.hpp>
#include <iostream> #include <iostream>
@ -238,10 +238,10 @@ int main()
std::vector<glm::mat4> Data(64 * 64 * 1); std::vector<glm::mat4> Data(64 * 64 * 1);
for(std::size_t i = 0; i < Data.size(); ++i) for(std::size_t i = 0; i < Data.size(); ++i)
Data[i] = glm::mat4( Data[i] = glm::mat4(
glm::vec4(glm::compRand4(-2.0f, 2.0f)), glm::vec4(glm::linearRand(glm::vec4(-2.0f), glm::vec4(2.0f))),
glm::vec4(glm::compRand4(-2.0f, 2.0f)), glm::vec4(glm::linearRand(glm::vec4(-2.0f), glm::vec4(2.0f))),
glm::vec4(glm::compRand4(-2.0f, 2.0f)), glm::vec4(glm::linearRand(glm::vec4(-2.0f), glm::vec4(2.0f))),
glm::vec4(glm::compRand4(-2.0f, 2.0f))); glm::vec4(glm::linearRand(glm::vec4(-2.0f), glm::vec4(2.0f))));
{ {
std::vector<glm::mat4> TestInvA; std::vector<glm::mat4> TestInvA;