Add love.graphics.transformPoint and love.graphics.inverseTransformPoint.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2016-10-20 18:13:20 -03:00
parent be1a59fb18
commit 4c122e6581
5 changed files with 218 additions and 33 deletions
+8
View File
@@ -34,8 +34,14 @@ namespace love
**/
class Matrix4
{
private:
static void multiply(const Matrix4 &a, const Matrix4 &b, float t[16]);
public:
static void multiply(const Matrix4 &a, const Matrix4 &b, Matrix4 &result);
/**
* Creates a new identity matrix.
**/
@@ -156,6 +162,8 @@ public:
template <typename V>
void transform(V *dst, const V *src, int size) const;
Matrix4 inverse() const;
/**
* Creates a new orthographic projection matrix with depth in the range of
* [-1, 1].