API review cleanup.

Change-Id: Ieae7d450308b5637ed4253fe9baed3634c6ed141
This commit is contained in:
Jason Sams
2010-12-06 15:59:59 -08:00
parent 11a8af5ea1
commit bf6ef8d78f
44 changed files with 437 additions and 332 deletions

View File

@ -95,7 +95,7 @@ public class ProgramVertex extends Program {
b.add(Element.MATRIX4X4(rs), "MVP");
Type.Builder typeBuilder = new Type.Builder(rs, b.create());
typeBuilder.add(Dimension.X, 1);
typeBuilder.setX(1);
return typeBuilder.create();
}
@ -153,7 +153,7 @@ public class ProgramVertex extends Program {
Type constInputType = ProgramVertex.Builder.getConstantInputType(rs);
mAlloc = Allocation.createTyped(rs, constInputType);
int bufferSize = constInputType.getElement().getSizeBytes()*
constInputType.getElementCount();
constInputType.getCount();
mIOBuffer = new FieldPacker(bufferSize);
loadModelview(new Matrix4f());
loadProjection(new Matrix4f());
@ -170,7 +170,7 @@ public class ProgramVertex extends Program {
for(int i = 0; i < 16; i ++) {
mIOBuffer.addF32(m.mMat[i]);
}
mAlloc.data(mIOBuffer.getData());
mAlloc.copyFrom(mIOBuffer.getData());
}
public void loadModelview(Matrix4f m) {