feat: change board cells color
This commit is contained in:
@@ -22,6 +22,12 @@ public class VertexBuffer {
|
||||
Unbind();
|
||||
}
|
||||
|
||||
public void UpdateData(int offset, float[] data) {
|
||||
Bind();
|
||||
GL30.glBufferSubData(GL30.GL_ARRAY_BUFFER, offset, data);
|
||||
Unbind();
|
||||
}
|
||||
|
||||
public void Destroy() {
|
||||
GL30.glDeleteBuffers(id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user