Switch fountain to use ProgramVertex rather than hard coded camers in scripts. Remove camera code from scripts.

This commit is contained in:
Jason Sams
2009-06-16 17:49:58 -07:00
parent 0826a6f90f
commit b37c0a5db6
13 changed files with 66 additions and 133 deletions

View File

@@ -154,10 +154,7 @@ public class RenderScript {
native private void nProgramVertexBindAllocation(int pv, int slot, int mID);
native private void nProgramVertexBegin(int inID, int outID);
native private void nProgramVertexSetType(int slot, int mID);
native private void nProgramVertexSetCameraMode(boolean isOrtho);
native private void nProgramVertexSetTextureMatrixEnable(boolean enable);
native private void nProgramVertexSetModelMatrixEnable(boolean enable);
native private void nProgramVertexSetProjectionMatrixEnable(boolean enable);
native private int nProgramVertexCreate();
@@ -733,22 +730,10 @@ public class RenderScript {
nProgramVertexSetType(slot, t.mID);
}
public void programVertexSetCameraMode(boolean isOrtho) {
nProgramVertexSetCameraMode(isOrtho);
}
public void programVertexSetTextureMatrixEnable(boolean enable) {
nProgramVertexSetTextureMatrixEnable(enable);
}
public void programVertexSetModelMatrixEnable(boolean enable) {
nProgramVertexSetModelMatrixEnable(enable);
}
public void programVertexSetProjectionMatrixEnable(boolean enable) {
nProgramVertexSetProjectionMatrixEnable(enable);
}
public ProgramVertex programVertexCreate() {
int id = nProgramVertexCreate();
return new ProgramVertex(id);