diff options
| author | Jason Sams <rjsams@android.com> | 2009-09-30 17:36:20 -0700 |
|---|---|---|
| committer | Jason Sams <rjsams@android.com> | 2009-09-30 17:40:06 -0700 |
| commit | e9ad9a719dc66437ddf021d13e6ca736a23b5413 (patch) | |
| tree | eaf8a1b1da324af59924a0d49eb6db36cae5b27c /libs/rs/rsMatrix.h | |
| parent | 5eb7c9d3e880032972c0d03dd34d9432fa7c719d (diff) | |
| download | frameworks_base-e9ad9a719dc66437ddf021d13e6ca736a23b5413.zip frameworks_base-e9ad9a719dc66437ddf021d13e6ca736a23b5413.tar.gz frameworks_base-e9ad9a719dc66437ddf021d13e6ca736a23b5413.tar.bz2 | |
Implement screen aligned bitmap drawing support.
Diffstat (limited to 'libs/rs/rsMatrix.h')
| -rw-r--r-- | libs/rs/rsMatrix.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/rs/rsMatrix.h b/libs/rs/rsMatrix.h index 7dc4165..11ce42e 100644 --- a/libs/rs/rsMatrix.h +++ b/libs/rs/rsMatrix.h @@ -23,7 +23,7 @@ namespace android { namespace renderscript { -struct Matrix +struct Matrix { float m[16]; @@ -47,6 +47,8 @@ struct Matrix void loadOrtho(float l, float r, float b, float t, float n, float f); void loadFrustum(float l, float r, float b, float t, float n, float f); + void vectorMultiply(float *v4out, const float *v3in) const; + void multiply(const Matrix *rhs) { Matrix tmp; tmp.loadMultiply(this, rhs); @@ -71,7 +73,7 @@ struct Matrix }; - + } |
