Add support for transformations.

This change adds partial support for the following transforms:
- scale()
- translate()
- rotate()
- setMatrix()
- getMatrix()

The transform is stored in a snapshot and saved/restored as needed.
The transform is currently not applied to the clip rect and is not
mapped to the vertex shader.

Change-Id: Id48993453311200804149917d0c126a4d0471226
This commit is contained in:
Romain Guy
2010-06-23 17:47:49 -07:00
parent bb9524b6bd
commit f6a11b8a9e
7 changed files with 253 additions and 79 deletions

View File

@@ -37,7 +37,10 @@ public class Matrix {
public static final int MPERSP_1 = 7; //!< use with getValues/setValues
public static final int MPERSP_2 = 8; //!< use with getValues/setValues
/* package */ int native_instance;
/**
* @hide
*/
public int native_instance;
/**
* Create an identity matrix