summaryrefslogtreecommitdiff
path: root/libs/rs/java
diff options
context:
space:
mode:
author Android (Google) Code Review <android-gerrit@google.com> 2009-07-16 15:09:38 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2009-07-16 15:09:38 -0700
commita2b0d2e422b481f532c36efc58f701791cb2c24a (patch)
tree910865eb9622458238228d6d9758a5fc6f02ac73 /libs/rs/java
parent6a294263f78ce8177de48cb9480bbe39d9e442cd (diff)
parent54440a01a97144efb6a3106fc8e63152f47e97f9 (diff)
Merge change 7590
* changes: Update rollo and renderscript to the new ACC compiler interface.
Diffstat (limited to 'libs/rs/java')
-rw-r--r--libs/rs/java/Rollo/res/raw/rollo.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/libs/rs/java/Rollo/res/raw/rollo.c b/libs/rs/java/Rollo/res/raw/rollo.c
index 54cb21fdc099..91413ca06e3c 100644
--- a/libs/rs/java/Rollo/res/raw/rollo.c
+++ b/libs/rs/java/Rollo/res/raw/rollo.c
@@ -25,7 +25,7 @@
void pfClearColor(float, float, float, float);
float loadF(int, int);
void storeF(int, int, float);
-void drawQuadF(float x1, float y1, float z1,
+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);
@@ -80,10 +80,10 @@ int main(void* con, int ft, int launchID)
float yb = (0.5f - y) * 5.f + 0.2f;
- drawQuadF(xlt, 5.f, 1,
- xrt, 5.f, 1,
- x + s, yb, 1,
- x - s, yb, 1);
+ drawQuad(xlt, 5.f, 1,
+ xrt, 5.f, 1,
+ x + s, yb, 1,
+ x - s, yb, 1);
contextBindProgramFragmentStore(NAMED_PFS);
}
@@ -106,11 +106,12 @@ int main(void* con, int ft, int launchID)
float tz1 = tmpCos * diam + (tmpSin * scale);
float tz2 = tz1 - (tmpSin * scale * 2.f);
+ int y;
for (y = 0; (y < rowCount) && iconCount; y++) {
float ty1 = ((y * 3.0f) - 4.5f) * scale;
float ty2 = ty1 + scale * 2.f;
pfBindTexture(NAMED_PF, 0, loadI32(1, y));
- drawQuadF(tx1, ty1, tz1,
+ drawQuad(tx1, ty1, tz1,
tx2, ty1, tz2,
tx2, ty2, tz2,
tx1, ty2, tz1);