diff options
| author | Romain Guy <romainguy@google.com> | 2010-07-09 18:53:25 -0700 |
|---|---|---|
| committer | Romain Guy <romainguy@google.com> | 2010-07-09 18:53:25 -0700 |
| commit | 0b9db91c3dc8007b47c8fd4fb9dd85be97201a88 (patch) | |
| tree | f8de431ac029c79d581e54b8ba52afe8a90e3e6b /libs/hwui/Program.h | |
| parent | 8445ca6c3ba9b7cee6d20f5919e3b3ba8e6b8c96 (diff) | |
| download | frameworks_base-0b9db91c3dc8007b47c8fd4fb9dd85be97201a88.zip frameworks_base-0b9db91c3dc8007b47c8fd4fb9dd85be97201a88.tar.gz frameworks_base-0b9db91c3dc8007b47c8fd4fb9dd85be97201a88.tar.bz2 | |
Remove math from the vertex shader.
Change-Id: I02847a60a8734bf8b3d29ec12e76297795095e38
Diffstat (limited to 'libs/hwui/Program.h')
| -rw-r--r-- | libs/hwui/Program.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/libs/hwui/Program.h b/libs/hwui/Program.h index ee16a92..61d55a9 100644 --- a/libs/hwui/Program.h +++ b/libs/hwui/Program.h @@ -23,6 +23,8 @@ #include <utils/KeyedVector.h> #include <utils/RefBase.h> +#include "Matrix.h" + namespace android { namespace uirenderer { @@ -107,26 +109,18 @@ public: * Binds the program with the specified projection, modelView and * transform matrices. */ - void use(const GLfloat* projectionMatrix, const GLfloat* modelViewMatrix, - const GLfloat* transformMatrix); + void use(const float* projectionMatrix, const mat4& modelViewMatrix, + const mat4& transformMatrix); /** * Name of the position attribute. */ int position; - /** - * Name of the color attribute. - */ - int color; /** - * Name of the projection uniform. - */ - int projection; - /** - * Name of the modelView uniform. + * Name of the color uniform. */ - int modelView; + int color; /** * Name of the transform uniform. */ @@ -146,7 +140,14 @@ class DrawTextureProgram: public DrawColorProgram { public: DrawTextureProgram(); + /** + * Name of the texture sampler uniform. + */ int sampler; + + /** + * Name of the texture coordinates attribute. + */ int texCoords; }; |
