Point Sprites

This commit is contained in:
Jason Sams
2009-08-20 16:10:36 -07:00
parent ac81c42971
commit 25ffcdc9d7
14 changed files with 77 additions and 83 deletions

View File

@ -111,7 +111,8 @@ public class Element extends BaseObj {
NX (15),
NY (16),
NZ (17),
INDEX (18);
INDEX (18),
POINT_SIZE(19);
int mID;
DataKind(int id) {
@ -241,13 +242,18 @@ public class Element extends BaseObj {
add(DataType.FLOAT, DataKind.Z, false, 32, null);
return this;
}
public Builder addFloatST() {
add(DataType.FLOAT, DataKind.S, false, 32, null);
add(DataType.FLOAT, DataKind.T, false, 32, null);
return this;
}
public Builder addFloatPointSize() {
add(DataType.FLOAT, DataKind.POINT_SIZE, false, 32, null);
return this;
}
public Builder addFloatRGB() {
add(DataType.FLOAT, DataKind.RED, false, 32, null);
add(DataType.FLOAT, DataKind.GREEN, false, 32, null);