From aae74ad6144470c66e72b075ac3afeddb186fa98 Mon Sep 17 00:00:00 2001 From: Alex Sakhartchouk Date: Fri, 4 Jun 2010 10:06:50 -0700 Subject: Creating the jni and java layer to integrate a3d Change-Id: I438359633bae59bf9188cd2c4664a92ca16c5f37 --- graphics/java/android/renderscript/RenderScript.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'graphics/java/android/renderscript/RenderScript.java') diff --git a/graphics/java/android/renderscript/RenderScript.java b/graphics/java/android/renderscript/RenderScript.java index eda849e..d35cf8b 100644 --- a/graphics/java/android/renderscript/RenderScript.java +++ b/graphics/java/android/renderscript/RenderScript.java @@ -117,6 +117,11 @@ public class RenderScript { native void nAllocationSubDataFromObject(int id, Type t, int offset, Object o); native void nAllocationSubReadFromObject(int id, Type t, int offset, Object o); + native int nFileA3DCreateFromAssetStream(int assetStream); + native int nFileA3DGetNumIndexEntries(int fileA3D); + native void nFileA3DGetIndexEntries(int fileA3D, int numEntries, int[] IDs, String[] names); + native int nFileA3DGetEntryByIndex(int fileA3D, int index); + native void nAdapter1DBindAllocation(int ad, int alloc); native void nAdapter1DSetConstraint(int ad, int dim, int value); native void nAdapter1DData(int ad, int[] d); -- cgit v1.1