Moving attrib creation to Mesh. Adding arrays as shader inputs.

Removing fixed size arrays.

Change-Id: I0213e403a2f1283dd43f21bea770aeb059561903
This commit is contained in:
Alex Sakhartchouk
2010-11-08 15:10:52 -08:00
parent 5b59e02eb5
commit 9d71e21800
28 changed files with 715 additions and 377 deletions

View File

@@ -486,6 +486,10 @@ public class RenderScript {
synchronized void nMeshBindIndex(int id, int alloc, int prim, int slot) {
rsnMeshBindIndex(mContext, id, alloc, prim, slot);
}
native void rsnMeshInitVertexAttribs(int con, int id);
synchronized void nMeshInitVertexAttribs(int id) {
rsnMeshInitVertexAttribs(mContext, id);
}
native int rsnMeshGetVertexBufferCount(int con, int id);
synchronized int nMeshGetVertexBufferCount(int id) {
return rsnMeshGetVertexBufferCount(mContext, id);