diff options
| author | 2011-01-18 11:19:19 -0800 | |
|---|---|---|
| committer | 2011-01-18 11:19:19 -0800 | |
| commit | 807daf7df615b60ce6fc41355aabe3aa353cebab (patch) | |
| tree | 96eeb8bde5042241238946f787d1dbc3a416d6e6 /libs/hwui/Matrix.h | |
| parent | d6cd572df8067c40b3e0e7e74e58cdb456b33e92 (diff) | |
Add support for skew()
Change-Id: Ia3a9a867f74fd78b61f75179e3788fdc2f0cacd0
Diffstat (limited to 'libs/hwui/Matrix.h')
| -rw-r--r-- | libs/hwui/Matrix.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/hwui/Matrix.h b/libs/hwui/Matrix.h index 23fc6c375150..08f5d776d5f5 100644 --- a/libs/hwui/Matrix.h +++ b/libs/hwui/Matrix.h @@ -72,6 +72,7 @@ public: void loadTranslate(float x, float y, float z); void loadScale(float sx, float sy, float sz); + void loadSkew(float sx, float sy); void loadRotate(float angle, float x, float y, float z); void loadMultiply(const Matrix4& u, const Matrix4& v); @@ -97,6 +98,12 @@ public: multiply(u); } + void skew(float sx, float sy) { + Matrix4 u; + u.loadSkew(sx, sy); + multiply(u); + } + void rotate(float angle, float x, float y, float z) { Matrix4 u; u.loadRotate(angle, x, y, z); |