Added GTX_common with isdenomal #223
This commit is contained in:
@@ -3,6 +3,7 @@ glmCreateTestGTC(gtx_bit)
|
||||
glmCreateTestGTC(gtx_closest_point)
|
||||
glmCreateTestGTC(gtx_color_space_YCoCg)
|
||||
glmCreateTestGTC(gtx_color_space)
|
||||
glmCreateTestGTC(gtx_common)
|
||||
glmCreateTestGTC(gtx_compatibility)
|
||||
glmCreateTestGTC(gtx_component_wise)
|
||||
glmCreateTestGTC(gtx_euler_angle)
|
||||
|
||||
33
test/gtx/gtx_common.cpp
Normal file
33
test/gtx/gtx_common.cpp
Normal file
@@ -0,0 +1,33 @@
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2014-09-08
|
||||
// Updated : 2014-09-08
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/common.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/gtx/common.hpp>
|
||||
#include <glm/gtx/vec1.hpp>
|
||||
|
||||
int test_isdenormal()
|
||||
{
|
||||
int Error(0);
|
||||
|
||||
bool A = glm::isdenormal(1.0f);
|
||||
glm::bvec1 B = glm::isdenormal(glm::vec1(1.0f));
|
||||
glm::bvec2 C = glm::isdenormal(glm::vec2(1.0f));
|
||||
glm::bvec3 D = glm::isdenormal(glm::vec3(1.0f));
|
||||
glm::bvec4 E = glm::isdenormal(glm::vec4(1.0f));
|
||||
|
||||
return Error;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
int Error(0);
|
||||
|
||||
Error += test_isdenormal();
|
||||
|
||||
return Error;
|
||||
}
|
||||
Reference in New Issue
Block a user