2013-10-27 18:25:03 +00:00
|
|
|
#include <glm/gtx/compatibility.hpp>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
int Error(0);
|
|
|
|
|
2015-07-19 14:32:36 +00:00
|
|
|
Error += glm::isfinite(1.0f) ? 0 : 1;
|
|
|
|
Error += glm::isfinite(1.0) ? 0 : 1;
|
|
|
|
Error += glm::isfinite(-1.0f) ? 0 : 1;
|
|
|
|
Error += glm::isfinite(-1.0) ? 0 : 1;
|
|
|
|
|
|
|
|
Error += glm::all(glm::isfinite(glm::vec4(1.0f))) ? 0 : 1;
|
|
|
|
Error += glm::all(glm::isfinite(glm::dvec4(1.0))) ? 0 : 1;
|
|
|
|
Error += glm::all(glm::isfinite(glm::vec4(-1.0f))) ? 0 : 1;
|
|
|
|
Error += glm::all(glm::isfinite(glm::dvec4(-1.0))) ? 0 : 1;
|
|
|
|
|
2013-10-27 18:25:03 +00:00
|
|
|
return Error;
|
|
|
|
}
|