parent
a2497e6174
commit
30ee2cd1bb
4 changed files with 34 additions and 8 deletions
@ -1,9 +1,22 @@ |
|||||||
#define GLM_ENABLE_EXPERIMENTAL |
#define GLM_ENABLE_EXPERIMENTAL |
||||||
|
#include <glm/vec2.hpp> |
||||||
#include <glm/gtx/texture.hpp> |
#include <glm/gtx/texture.hpp> |
||||||
|
|
||||||
|
int test_levels() |
||||||
|
{ |
||||||
|
int Error = 0; |
||||||
|
|
||||||
|
int const Levels = glm::levels(glm::ivec2(3, 2)); |
||||||
|
Error += Levels == 2 ? 0 : 1; |
||||||
|
|
||||||
|
return Error; |
||||||
|
} |
||||||
|
|
||||||
int main() |
int main() |
||||||
{ |
{ |
||||||
int Error = 0; |
int Error = 0; |
||||||
|
|
||||||
|
Error += test_levels(); |
||||||
|
|
||||||
return Error; |
return Error; |
||||||
} |
} |
||||||
|
Loading…
Reference in New Issue