add opengl

This commit is contained in:
Andrey Zimin
2024-05-15 10:57:21 +03:00
parent a0b5e810f7
commit b1d693dbd4
9 changed files with 130 additions and 44 deletions

View File

@@ -4,14 +4,8 @@
namespace mt
{
using vec2 = glm::vec2;
using vec3 = glm::vec3;
using vec4 = glm::vec4;
using mat2 = glm::mat2;
using mat3 = glm::mat3;
using mat4 = glm::mat4;
using namespace glm;
template<typename T>
T convert(glm::vec2& v) { return T{ v.x, v.y }; }
T convert(vec2& v) { return T{ v.x, v.y }; }
}