mirror of
https://github.com/g-truc/glm.git
synced 2024-11-27 02:34:35 +00:00
33 lines
908 B
C++
33 lines
908 B
C++
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
// 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>
|
|
|
|
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;
|
|
}
|