diff options
| author | Jason Sams <rjsams@android.com> | 2010-08-04 17:50:20 -0700 |
|---|---|---|
| committer | Jason Sams <rjsams@android.com> | 2010-08-05 10:00:21 -0700 |
| commit | 442a647424e6537e94341654e3ae5d52efd84862 (patch) | |
| tree | 0a73c7551dceac6b4a81ee6ddb9b7f2ef11c89b4 /libs/rs/rsProgramFragment.h | |
| parent | 208c425e842afed177801016c00c2c01bd8b44aa (diff) | |
| download | frameworks_base-442a647424e6537e94341654e3ae5d52efd84862.zip frameworks_base-442a647424e6537e94341654e3ae5d52efd84862.tar.gz frameworks_base-442a647424e6537e94341654e3ae5d52efd84862.tar.bz2 | |
Support constant and varying colors in ProgramFragment.
Change-Id: I16ce84ff427016f3a1923594efc718eca32dd7f2
Diffstat (limited to 'libs/rs/rsProgramFragment.h')
| -rw-r--r-- | libs/rs/rsProgramFragment.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/rs/rsProgramFragment.h b/libs/rs/rsProgramFragment.h index e5bbe1b..7c1598e 100644 --- a/libs/rs/rsProgramFragment.h +++ b/libs/rs/rsProgramFragment.h @@ -44,6 +44,8 @@ public: virtual RsA3DClassID getClassId() const { return RS_A3D_CLASS_ID_PROGRAM_FRAGMENT; } static ProgramFragment *createFromStream(Context *rsc, IStream *stream); + void setConstantColor(float, float, float, float); + protected: // Hacks to create a program for now uint32_t mTextureFormats[MAX_TEXTURE]; @@ -51,6 +53,10 @@ protected: RsTexEnvMode mEnvModes[MAX_TEXTURE]; uint32_t mTextureEnableMask; bool mPointSpriteEnable; + bool mVaryingColor; + + float mConstantColor[4]; + int32_t mConstantColorUniformIndex; }; class ProgramFragmentState |
