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

+5 -5
View File
@@ -15,18 +15,18 @@ class AnimationPreview : public CanvasView
bool wasPlaybackPlaying = false;
int soundFrame = -1;
bool isMoveDragging = false;
glm::vec2 moveOffset{};
glm::vec2 nullRectScaleAnchor{};
Vec2 moveOffset{};
Vec2 nullRectScaleAnchor{};
Recorder recorder = {};
glm::vec2 recordSize{};
glm::vec2 recordPan{};
Vec2 recordSize{};
Vec2 recordPan{};
float recordZoom = 0;
// Where each item's pivot is at every frame of the animation, kept until the document or view changes.
struct PivotPath
{
Draw item = {};
std::vector<glm::vec2> points{};
std::vector<Vec2> points{};
};
std::vector<PivotPath> pivotPaths;
std::tuple<std::uint64_t, std::uint64_t, int, bool> pivotPathsKey;