1
0
Fork 0
This commit is contained in:
MrDev023 2015-07-16 16:58:21 +02:00
parent aabe5b12f4
commit f81044a2ba

View file

@ -87,6 +87,7 @@ public class VBO {
public void bufferData(){
glBindBuffer(GL_ARRAY_BUFFER, vboID);
glBufferData(GL_ARRAY_BUFFER, buffer, GL_STATIC_DRAW);
// glBufferSubData(vboID, 0, buffer);
glBindBuffer(GL_ARRAY_BUFFER, 0);
bufferSize = buffer.limit() / 7;// 7 = 3 vertex(x,y,z) + 4 color (r,g,b,a)
}