summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsScriptC.cpp
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-06-19 18:34:17 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-06-19 18:34:17 -0700
commitba0b11bebecfd530f77b2c8e4f43c3e24ea549f9 (patch)
tree24f36f1bf0f04bec91f5e9d45fb2806714a32023 /libs/rs/rsScriptC.cpp
parent17c848a27c9c9d21bbe6ac94e47b10d4c12b96a9 (diff)
parentaf49c744d0fc7c9ced4a74afda1bbcd08440bdca (diff)
downloadframeworks_base-ba0b11bebecfd530f77b2c8e4f43c3e24ea549f9.zip
frameworks_base-ba0b11bebecfd530f77b2c8e4f43c3e24ea549f9.tar.gz
frameworks_base-ba0b11bebecfd530f77b2c8e4f43c3e24ea549f9.tar.bz2
Merge change 4881
* changes: implement modeview matrix sliding from within scripts.
Diffstat (limited to 'libs/rs/rsScriptC.cpp')
-rw-r--r--libs/rs/rsScriptC.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp
index 557f3ae..e170b8c 100644
--- a/libs/rs/rsScriptC.cpp
+++ b/libs/rs/rsScriptC.cpp
@@ -43,6 +43,16 @@ ScriptC::~ScriptC()
}
}
+extern "C" float fixedToFloat(int32_t f)
+{
+ return ((float)f) / 0x10000;
+}
+
+extern "C" float intToFloat(int32_t f)
+{
+ return (float)f;
+}
+
extern "C" void matrixLoadIdentity(rsc_Matrix *mat)
{
Matrix *m = reinterpret_cast<Matrix *>(mat);