diff options
author | Jason Sams <rjsams@android.com> | 2009-11-25 13:22:07 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2009-11-25 13:22:07 -0800 |
commit | c460e55d78cbe8bee95c5c947dfe541218142a5b (patch) | |
tree | c4044e0961621e61c5fb3be0411a073a688caf2c /rsProgramVertex.h | |
parent | e6c6078f301a197f310b0ae0c12031188e7c1b6b (diff) | |
download | rs-c460e55d78cbe8bee95c5c947dfe541218142a5b.tar.gz |
Begin gl2 support. Renderscript still uses GL1.1 by default. However, 2.0 can be enabled and will render most tests correctly.
Diffstat (limited to 'rsProgramVertex.h')
-rw-r--r-- | rsProgramVertex.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rsProgramVertex.h b/rsProgramVertex.h index a97ba382..aa626da3 100644 --- a/rsProgramVertex.h +++ b/rsProgramVertex.h @@ -34,6 +34,7 @@ public: virtual ~ProgramVertex(); virtual void setupGL(const Context *rsc, ProgramVertexState *state); + virtual void setupGL2(const Context *rsc, ProgramVertexState *state, ShaderCache *sc); void setTextureMatrixEnable(bool e) {mTextureMatrixEnable = e;} @@ -45,6 +46,10 @@ public: void transformToScreen(const Context *, float *v4out, const float *v3in) const; + virtual void createShader(); + virtual void loadShader(); + virtual void init(Context *); + protected: uint32_t mLightCount; |