diff options
author | Romain Guy <romainguy@android.com> | 2009-07-30 18:45:01 -0700 |
---|---|---|
committer | Romain Guy <romainguy@android.com> | 2009-07-30 19:11:51 -0700 |
commit | 584a375df68ed7d62b38389078c6804edf228f9c (patch) | |
tree | 62120c578d718d04a940c8b76389e1d8d7717ba0 /libs/rs/rsScriptC.cpp | |
parent | 1a20bae18ce05a5a141810492549d351a82f6490 (diff) |
First pass at implementing the Grass live wallpaper in RenderScript.
This change also adds second(), minute() and hour() to the RS library.
Diffstat (limited to 'libs/rs/rsScriptC.cpp')
-rw-r--r-- | libs/rs/rsScriptC.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp index 842c836b9ec5..3b9d27a4ed07 100644 --- a/libs/rs/rsScriptC.cpp +++ b/libs/rs/rsScriptC.cpp @@ -230,6 +230,12 @@ void rsi_ScriptCSetClearColor(Context * rsc, float r, float g, float b, float a) ss->mEnviroment.mClearColor[3] = a; } +void rsi_ScriptCSetTimeZone(Context * rsc, const char * timeZone, uint32_t length) +{ + ScriptCState *ss = &rsc->mScriptC; + ss->mEnviroment.mTimeZone = timeZone; +} + void rsi_ScriptCSetClearDepth(Context * rsc, float v) { ScriptCState *ss = &rsc->mScriptC; |