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
@@ -20,8 +20,8 @@ std::string region_name_get(const std::string& format, int number)
|
||||
|
||||
static bool is_region_matched(const Region& region, const Frame& frame)
|
||||
{
|
||||
return glm::ivec2(region.crop) == glm::ivec2(frame.crop) && glm::ivec2(region.size) == glm::ivec2(frame.size) &&
|
||||
glm::ivec2(region.pivot) == glm::ivec2(frame.pivot);
|
||||
return IVec2(region.crop) == IVec2(frame.crop) && IVec2(region.size) == IVec2(frame.size) &&
|
||||
IVec2(region.pivot) == IVec2(frame.pivot);
|
||||
}
|
||||
|
||||
// Every frame of every layer track whose layer has a spritesheet, with that spritesheet's id.
|
||||
|
||||
Reference in new issue
Block a user