Use slang's reflection and change "x,y" and "s,t" to "position" and "texture0".
Change-Id: Idb9300a34fa74f5efb797d8a027e20663a23b472
diff --git a/src/com/android/musicvis/vis5/Visualization5RS.java b/src/com/android/musicvis/vis5/Visualization5RS.java
index cbe7d3f..ee965b8 100644
--- a/src/com/android/musicvis/vis5/Visualization5RS.java
+++ b/src/com/android/musicvis/vis5/Visualization5RS.java
@@ -68,7 +68,7 @@
WorldState mWorldState = new WorldState();
ScriptC_Many mScript;
- private ScriptField_Vertex mVertexBuffer;
+ private com.android.musicvis.vis5.ScriptField_Vertex mVertexBuffer;
private ProgramStore mPfsBackground;
private ProgramFragment mPfBackgroundMip;
@@ -242,7 +242,7 @@
// Start creating the mesh
final SimpleMesh.Builder meshBuilder = new SimpleMesh.Builder(mRS);
- mVertexBuffer = new ScriptField_Vertex(mRS, mPointData.length / 4);
+ mVertexBuffer = new com.android.musicvis.vis5.ScriptField_Vertex(mRS, mPointData.length / 4);
final int vertexSlot = meshBuilder.addVertexType(mVertexBuffer.getType());
// Specify the type and number of indices we need. We'll allocate them later.
@@ -257,7 +257,7 @@
mPointAlloc = mVertexBuffer.getAllocation();
- mPointAlloc = mCubeMesh.createVertexAllocation(vertexSlot);
+ //sliao mPointAlloc = mCubeMesh.createVertexAllocation(vertexSlot);
mScript.bind_gPoints(mVertexBuffer);
mScript.set_gPointBuffer(mPointAlloc);