added blank vbo loading
parent
5eeccfa5d6
commit
8804cc1871
|
@ -69,6 +69,15 @@ public class Loader {
|
||||||
return vaoID;
|
return vaoID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int createEmptyVbo(int floatCount) {
|
||||||
|
int vbo = GL15.glGenBuffers();
|
||||||
|
vbos.add(vbo);
|
||||||
|
GL15.glBindBuffer(GL15.GL_ARRAY_BUFFER, vbo);
|
||||||
|
GL15.glBufferData(GL15.GL_ARRAY_BUFFER, floatCount * 4, GL15.GL_STREAM_DRAW);
|
||||||
|
GL15.glBindBuffer(GL15.GL_ARRAY_BUFFER, 0);
|
||||||
|
return vbo;
|
||||||
|
}
|
||||||
|
|
||||||
private static void storeDataInAttributeList(int attributeNumber, int coordinateSize, float[] data) {
|
private static void storeDataInAttributeList(int attributeNumber, int coordinateSize, float[] data) {
|
||||||
int vboID = GL15.glGenBuffers();
|
int vboID = GL15.glGenBuffers();
|
||||||
vbos.add(vboID);
|
vbos.add(vboID);
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue