void {@native glDeleteBuffers}(GLsizei n, const GLuint * ids);
348349350351352353354355356357358
tmpHandle.clear(); tmpHandle.put(bufferHandle); tmpHandle.flip(); GL11 gl = Gdx.gl11; gl.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0); gl.glDeleteBuffers(1, tmpHandle); bufferHandle = 0; } } /** Returns the VBO handle
330331332333334335336337338339340
tmpHandle.clear(); tmpHandle.put(bufferHandle); tmpHandle.flip(); GL11 gl = Gdx.gl11; gl.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0); gl.glDeleteBuffers(1, tmpHandle); bufferHandle = 0; } BufferUtils.disposeUnsafeByteBuffer(byteBuffer); } }
329330331332333334335336337338
tmpHandle.clear(); tmpHandle.put(bufferHandle); tmpHandle.flip(); GL11 gl = Gdx.gl11; gl.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0); gl.glDeleteBuffers(1, tmpHandle); bufferHandle = 0; } } }
194195196197198199200201202203
tmpHandle.clear(); tmpHandle.put(bufferHandle); tmpHandle.flip(); GL11 gl = Gdx.gl11; gl.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, 0); gl.glDeleteBuffers(1, tmpHandle); bufferHandle = 0; } } }
340341342343344345346347348349350
tmpHandle.clear(); tmpHandle.put(bufferHandle); tmpHandle.flip(); GL20 gl = Gdx.gl20; gl.glBindBuffer(GL20.GL_ARRAY_BUFFER, 0); gl.glDeleteBuffers(1, tmpHandle); bufferHandle = 0; } else { tmpHandle.clear(); tmpHandle.put(bufferHandle); tmpHandle.flip();
322323324325326327328329330331332
232233234235236237238239240
tmpHandle.clear(); tmpHandle.put(bufferHandle); tmpHandle.flip(); GL20 gl = Gdx.gl20; gl.glBindBuffer(GL20.GL_ARRAY_BUFFER, 0); gl.glDeleteBuffers(1, tmpHandle); bufferHandle = 0; } }
157158159160161162163164165
tmpHandle.clear(); tmpHandle.put(bufferHandle); tmpHandle.flip(); GL20 gl = Gdx.gl20; gl.glBindBuffer(GL20.GL_ELEMENT_ARRAY_BUFFER, 0); gl.glDeleteBuffers(1, tmpHandle); bufferHandle = 0; } }