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:
1 parent
c38a3a9890
commit
03bbb93ba6
79 files changed
+1232
-810
No files matched your search
+1
-1
@@ -435,7 +435,7 @@ int track_length_get(const Track& track)
|
||||
}
|
||||
|
||||
// The frames playback stays within: [start, end), from the markers (or the whole animation).
|
||||
glm::ivec2 animation_play_range_get(const Animation& animation)
|
||||
IVec2 animation_play_range_get(const Animation& animation)
|
||||
{
|
||||
auto length = std::max(animation.frameNum, 1);
|
||||
auto start = animation.startMarker != -1 ? std::clamp(animation.startMarker, 0, length - 1) : 0;
|
||||
|
||||
Reference in new issue
Block a user