feat: change board cells color

This commit is contained in:
2025-04-28 11:04:41 +02:00
parent b57fa1482b
commit de4ed869ea
6 changed files with 65 additions and 13 deletions

View File

@@ -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);
}