mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Minor optimizations to love.graphics.draw(texture).
--HG-- branch : minor
This commit is contained in:
@@ -85,20 +85,21 @@ Matrix4::Matrix4(float t00, float t10, float t01, float t11, float x, float y)
|
||||
setRawTransformation(t00, t10, t01, t11, x, y);
|
||||
}
|
||||
|
||||
Matrix4::Matrix4(const Matrix4 &a, const Matrix4 &b)
|
||||
{
|
||||
multiply(a, b, e);
|
||||
}
|
||||
|
||||
Matrix4::Matrix4(float x, float y, float angle, float sx, float sy, float ox, float oy, float kx, float ky)
|
||||
{
|
||||
setTransformation(x, y, angle, sx, sy, ox, oy, kx, ky);
|
||||
}
|
||||
|
||||
Matrix4::~Matrix4()
|
||||
{
|
||||
}
|
||||
|
||||
Matrix4 Matrix4::operator * (const Matrix4 &m) const
|
||||
{
|
||||
Matrix4 t;
|
||||
multiply(*this, m, t.e);
|
||||
return t;
|
||||
float t[16];
|
||||
multiply(*this, m, t);
|
||||
return Matrix4(t);
|
||||
}
|
||||
|
||||
void Matrix4::operator *= (const Matrix4 &m)
|
||||
|
||||
Reference in New Issue
Block a user