2017-08-25 13:55:41 +00:00
|
|
|
#define GLM_ENABLE_EXPERIMENTAL
|
2017-09-20 13:32:29 +00:00
|
|
|
#include <glm/vec2.hpp>
|
2017-08-25 13:55:41 +00:00
|
|
|
#include <glm/gtx/texture.hpp>
|
|
|
|
|
2017-09-20 13:32:29 +00:00
|
|
|
int test_levels()
|
|
|
|
{
|
|
|
|
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;
|
|
|
|
}
|