545546547548549550551552553554
@Override public void glDeleteBuffers (int n, IntBuffer buffers) { for (int i = 0; i < n; i++) { int id = buffers.get(); WebGLBuffer buffer = this.buffers.get(id); deallocateBufferId(id); gl.deleteBuffer(buffer); } }
618619620621622623624625626627
} @Override public void glGenBuffers (int n, IntBuffer buffers) { for (int i = 0; i < n; i++) { WebGLBuffer buffer = gl.createBuffer(); int id = allocateBufferId(buffer); buffers.put(id); } }
559560561562563564565566567568
632633634635636637638639640641