From af49c744d0fc7c9ced4a74afda1bbcd08440bdca Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Fri, 19 Jun 2009 18:33:44 -0700 Subject: implement modeview matrix sliding from within scripts. --- libs/rs/rsScriptC.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libs/rs/rsScriptC.cpp') 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(mat); -- cgit v1.2.3-59-g8ed1b