Fix line and shape segment counts and smooth line antialiasing when love.graphics.applyTransform and replaceTransform are used.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2016-11-25 19:59:48 -04:00
parent f85ee6b504
commit 92774b759b
4 changed files with 37 additions and 15 deletions
+6
View File
@@ -149,6 +149,12 @@ void Matrix4::setShear(float kx, float ky)
e[1] = ky;
e[4] = kx;
}
void Matrix4::getApproximateScale(float &sx, float &sy) const
{
sx = sqrtf(e[0] * e[0] + e[4] * e[4]);
sy = sqrtf(e[1] * e[1] + e[5] * e[5]);
}
void Matrix4::setRawTransformation(float t00, float t10, float t01, float t11, float x, float y)
{