summaryrefslogtreecommitdiff
path: root/libs/rs/rsScriptC.cpp
diff options
context:
space:
mode:
author Jason Sams <rjsams@android.com> 2009-06-19 18:33:44 -0700
committer Jason Sams <rjsams@android.com> 2009-06-19 18:33:44 -0700
commitaf49c744d0fc7c9ced4a74afda1bbcd08440bdca (patch)
tree2d4f8b03a72c2cc4e484f2843c2495b94e7cb998 /libs/rs/rsScriptC.cpp
parent462d11b880cba72584c135397c0a82618ab63217 (diff)
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 557f3aea1f40..e170b8ca9d8f 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);