mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 06:59:18 +02:00
merge local branch 'mover_in_c++'
This commit is contained in:
22
ref/glm/test/gtx/gtx_texture.cpp
Normal file
22
ref/glm/test/gtx/gtx_texture.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#define GLM_ENABLE_EXPERIMENTAL
|
||||
#include <glm/vec2.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 Error = 0;
|
||||
|
||||
Error += test_levels();
|
||||
|
||||
return Error;
|
||||
}
|
||||
Reference in New Issue
Block a user