q
This commit is contained in:
parent
aabe5b12f4
commit
f81044a2ba
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Reference in a new issue