commit | af49c744d0fc7c9ced4a74afda1bbcd08440bdca | [log] [tgz] |
---|---|---|
author | Jason Sams <rjsams@android.com> | Fri Jun 19 18:33:44 2009 -0700 |
committer | Jason Sams <rjsams@android.com> | Fri Jun 19 18:33:44 2009 -0700 |
tree | 2d4f8b03a72c2cc4e484f2843c2495b94e7cb998 | |
parent | 462d11b880cba72584c135397c0a82618ab63217 [diff] [blame] |
implement modeview matrix sliding from within scripts.
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 @@ } } +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);