glm/test/gtx/gtx_texture.cpp

24 lines
307 B
C++
Raw Permalink Normal View History

2017-09-20 13:32:29 +00:00
#include <glm/vec2.hpp>
#define GLM_ENABLE_EXPERIMENTAL
2017-08-25 13:55:41 +00:00
#include <glm/gtx/texture.hpp>
static int test_levels()
2017-09-20 13:32:29 +00:00
{
int Error = 0;
int const Levels = glm::levels(glm::ivec2(3, 2));
Error += Levels == 2 ? 0 : 1;
return Error;
}
2017-08-25 13:55:41 +00:00
int main()
{
int Error = 0;
2017-09-20 13:32:29 +00:00
Error += test_levels();
2017-08-25 13:55:41 +00:00
return Error;
}