Enable light sources and update film test app.

This commit is contained in:
Jason Sams
2009-07-21 12:20:54 -07:00
parent c7b0dba641
commit ee41112e15
12 changed files with 148 additions and 86 deletions

View File

@@ -156,6 +156,7 @@ public class RenderScript {
native private void nProgramVertexBegin(int inID, int outID);
native private void nProgramVertexSetType(int slot, int mID);
native private void nProgramVertexSetTextureMatrixEnable(boolean enable);
native private void nProgramVertexAddLight(int id);
native private int nProgramVertexCreate();
native private void nLightBegin();
@@ -720,7 +721,6 @@ public class RenderScript {
public void bindAllocation(int slot, Allocation va) {
nProgramVertexBindAllocation(mID, slot, va.mID);
}
}
public void programVertexBegin(Element in, Element out) {
@@ -743,6 +743,10 @@ public class RenderScript {
nProgramVertexSetTextureMatrixEnable(enable);
}
public void programVertexAddLight(Light l) {
nProgramVertexAddLight(l.mID);
}
public ProgramVertex programVertexCreate() {
int id = nProgramVertexCreate();
return new ProgramVertex(id);