added blank vbo loading

pull/1/head
BuildTools 2019-05-27 19:59:47 +10:00
parent 5eeccfa5d6
commit 8804cc1871
2 changed files with 9 additions and 0 deletions

View File

@ -69,6 +69,15 @@ public class Loader {
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) {
int vboID = GL15.glGenBuffers();
vbos.add(vboID);