summaryrefslogtreecommitdiff
path: root/libs/rs/rsScriptC.cpp
diff options
context:
space:
mode:
author Jason Sams <rjsams@android.com> 2009-07-16 19:09:33 -0700
committer Jason Sams <rjsams@android.com> 2009-07-16 19:09:33 -0700
commitc1ea948ee8b16cf1afeea6f3e9e67df0811e4253 (patch)
tree2d8e7fbadcd69d4f1ad1ed5906d4915c50601de2 /libs/rs/rsScriptC.cpp
parent764205c19420256ccc05df2a1669a7b69c5daaf9 (diff)
More usability tweaks including turning the icons right side up.
Diffstat (limited to 'libs/rs/rsScriptC.cpp')
-rw-r--r--libs/rs/rsScriptC.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp
index adbe3e9d07e6..82bad7cb8486 100644
--- a/libs/rs/rsScriptC.cpp
+++ b/libs/rs/rsScriptC.cpp
@@ -326,7 +326,7 @@ static void SC_drawQuad(float x1, float y1, float z1,
//LOGE("%4.2f, %4.2f, %4.2f", x4, y4, z4);
float vtx[] = {x1,y1,z1, x2,y2,z2, x3,y3,z3, x4,y4,z4};
- static const float tex[] = {0,0, 0,1, 1,1, 1,0};
+ static const float tex[] = {0,1, 1,1, 1,0, 0,0};
rsc->setupCheck();
@@ -353,18 +353,6 @@ static void SC_drawQuad(float x1, float y1, float z1,
glDrawArrays(GL_TRIANGLE_FAN, 0, 4);
}
-extern "C" float sinf(float angle)
-{
- float s = (float)sin(angle);
- return s;
-}
-
-extern "C" float cosf(float angle)
-{
- float s = (float)cos(angle);
- return s;
-}
-
extern "C" void pfClearColor(float r, float g, float b, float a)
{
//LOGE("c %f %f %f %f", r, g, b, a);
@@ -522,6 +510,7 @@ ScriptCState::SymbolTable_t ScriptCState::gSyms[] = {
{ "drawQuad", (void *)&SC_drawQuad, "void drawQuad(float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4)" },
{ "sinf", (void *)&sinf, "float sinf(float)" },
{ "cosf", (void *)&cosf, "float cosf(float)" },
+ { "fabs", (void *)&fabs, "float fabs(float)" },
{ "contextBindProgramFragmentStore", (void *)&contextBindProgramFragmentStore, "void contextBindProgramFragmentStore(int)" },
{ "pfClearColor", (void *)&pfClearColor, "void pfClearColor(float, float, float, float)" },
{ "pfBindTexture", (void *)&pfBindTexture, "void pfBindTexture(int, int, int)" },