diff options
author | Jason Sams <rjsams@android.com> | 2009-09-03 15:43:13 -0700 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2009-09-03 15:43:13 -0700 |
commit | 2525a815220652b37e2e390fe8c62394a6d0e574 (patch) | |
tree | be26549baa696d9beb89c8188ab16c13f26a5548 /graphics/java/android/renderscript/SimpleMesh.java | |
parent | 1c1ffa0cab8b56274970736d7f3b8c00c01c3d2b (diff) |
Improve structure support using symbol lookup of named structures in scripts to allow them to appear as just pointers to structs.
Diffstat (limited to 'graphics/java/android/renderscript/SimpleMesh.java')
-rw-r--r-- | graphics/java/android/renderscript/SimpleMesh.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/graphics/java/android/renderscript/SimpleMesh.java b/graphics/java/android/renderscript/SimpleMesh.java index e66fb8a4fae9..5d876549eef4 100644 --- a/graphics/java/android/renderscript/SimpleMesh.java +++ b/graphics/java/android/renderscript/SimpleMesh.java @@ -50,6 +50,13 @@ public class SimpleMesh extends BaseObj { return Allocation.createTyped(mRS, mIndexType); } + public Type getVertexType(int slot) { + return mVertexTypes[slot]; + } + + public Type getIndexType() { + return mIndexType; + } public static class Builder { RenderScript mRS; |