Replace glm with vec.h

Vec2, IVec2, Vec3, Vec4, IVec4 and a column-major Mat4, with glm's formulas, in one header.
Free functions are vec_ and mat4_ prefixed. The leaked using namespace glm is gone.
Render goldens still match.
This commit is contained in:
shweet committed 2026-11-22 18:15:02 -05:00
1 parent c38a3a9890
commit 03bbb93ba6
79 files changed
+1232 -810

No files matched your search

+2 -2
View File
@@ -31,7 +31,7 @@ public:
float stretch = 1.0f;
int effect = 0;
int trailAlpha = 255;
glm::vec2 levels{};
Vec2 levels{};
float gradientHeight = 0;
ImU32 gradientColor = 0;
};
@@ -54,7 +54,7 @@ public:
Model model = {};
std::unique_ptr<Canvas> canvas;
std::unordered_map<int, Image> textures;
glm::vec4 rect{-1.0f};
Vec4 rect{-1.0f};
float time = 0;
float fps = 30.0f;
bool isLoaded = false;