diff options
| author | Jason Sams <rjsams@android.com> | 2009-08-04 16:58:20 -0700 |
|---|---|---|
| committer | Jason Sams <rjsams@android.com> | 2009-08-04 17:05:43 -0700 |
| commit | 22534176fb5c1257130ef4ee589739ca42766a32 (patch) | |
| tree | d7efb4494b65e4769203b9a879646c7407d63cc9 /libs/rs/rsScript.cpp | |
| parent | 959b7bd96b18f84510e8af72d7a439140edb5169 (diff) | |
| download | frameworks_base-22534176fb5c1257130ef4ee589739ca42766a32.zip frameworks_base-22534176fb5c1257130ef4ee589739ca42766a32.tar.gz frameworks_base-22534176fb5c1257130ef4ee589739ca42766a32.tar.bz2 | |
Split ProgramFragment and ProgramStore from RenderScript.java. Update Element and Type to new cached builder for easier app developement.
Diffstat (limited to 'libs/rs/rsScript.cpp')
| -rw-r--r-- | libs/rs/rsScript.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libs/rs/rsScript.cpp b/libs/rs/rsScript.cpp index ae85c9c..6ce9f61 100644 --- a/libs/rs/rsScript.cpp +++ b/libs/rs/rsScript.cpp @@ -49,6 +49,32 @@ void rsi_ScriptBindAllocation(Context * rsc, RsScript vs, RsAllocation va, uint3 s->mSlots[slot].set(static_cast<Allocation *>(va)); } +void rsi_ScriptSetClearColor(Context * rsc, RsScript vs, float r, float g, float b, float a) +{ + Script *s = static_cast<Script *>(vs); + s->mEnviroment.mClearColor[0] = r; + s->mEnviroment.mClearColor[1] = g; + s->mEnviroment.mClearColor[2] = b; + s->mEnviroment.mClearColor[3] = a; +} + +void rsi_ScriptSetTimeZone(Context * rsc, RsScript vs, const char * timeZone, uint32_t length) +{ + Script *s = static_cast<Script *>(vs); + s->mEnviroment.mTimeZone = timeZone; +} + +void rsi_ScriptSetClearDepth(Context * rsc, RsScript vs, float v) +{ + Script *s = static_cast<Script *>(vs); + s->mEnviroment.mClearDepth = v; +} + +void rsi_ScriptSetClearStencil(Context * rsc, RsScript vs, uint32_t v) +{ + Script *s = static_cast<Script *>(vs); + s->mEnviroment.mClearStencil = v; +} } } |
