Begin implementing SimpleMesh and fix some bugs with refcounting and java object destruction tracking.

This commit is contained in:
Jason Sams
2009-08-09 17:01:55 -07:00
parent 467f3df13d
commit 1bada8cd6e
32 changed files with 943 additions and 151 deletions

View File

@ -178,6 +178,11 @@ 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 void nSimpleMeshDestroy(int id);
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);
private int mDev;
private int mContext;