summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2010-07-01 16:47:40 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-07-01 16:47:40 -0700
commit704aba52a8732ac6fffe9551756f86e76864e0a7 (patch)
tree20e8d0a291b527ce31dc91dd3a32e32ab69a5ad8 /graphics/java/android/renderscript/RenderScript.java
parente7f49e0d32cf63505837f5f1eea6607686e50842 (diff)
parent164aaedf7f24827c3da84acc733325ae985930d6 (diff)
Merge "Start of mesh API cleanup. Switched all native code to go through Mesh class. Removed SimpleMesh Added java Mesh class Will need to port all existing code to use java Mesh, then remove java SimpleMesh."
Diffstat (limited to 'graphics/java/android/renderscript/RenderScript.java')
-rw-r--r--graphics/java/android/renderscript/RenderScript.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/graphics/java/android/renderscript/RenderScript.java b/graphics/java/android/renderscript/RenderScript.java
index b2e5b02cadec..c7e8ca5929bc 100644
--- a/graphics/java/android/renderscript/RenderScript.java
+++ b/graphics/java/android/renderscript/RenderScript.java
@@ -186,6 +186,10 @@ public class RenderScript {
native void nLightSetColor(int l, float r, float g, float b);
native void nLightSetPosition(int l, float x, float y, float z);
+ native int nMeshCreate(int vtxCount, int indexCount);
+ native void nMeshBindVertex(int id, int alloc, int slot);
+ native void nMeshBindIndex(int id, int alloc, int prim, int slot);
+
native int nSimpleMeshCreate(int batchID, int idxID, int[] vtxID, int prim);
native void nSimpleMeshBindVertex(int id, int alloc, int slot);
native void nSimpleMeshBindIndex(int id, int alloc);