本文整理汇总了Java中org.lwjgl.opengl.GL15.glDeleteBuffers方法的典型用法代码示例。如果您正苦于以下问题:Java GL15.glDeleteBuffers方法的具体用法?Java GL15.glDeleteBuffers怎么用?Java GL15.glDeleteBuffers使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.lwjgl.opengl.GL15
的用法示例。
在下文中一共展示了GL15.glDeleteBuffers方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: cleanUp
import org.lwjgl.opengl.GL15; //导入方法依赖的package包/类
public void cleanUp() {
for(int vao : vaos) {
GL30.glDeleteVertexArrays(vao);
}
for(int vbo : vbos) {
GL15.glDeleteBuffers(vbo);
}
for(int texture : textures) {
GL11.glDeleteTextures(texture);
}
}
示例2: deleteShaderProgram
import org.lwjgl.opengl.GL15; //导入方法依赖的package包/类
public void deleteShaderProgram() {
GL15.glDeleteBuffers(vbo);
vbo = 0;
GL15.glDeleteBuffers(worldChunkSsbo);
worldChunkSsbo = 0;
GL15.glDeleteBuffers(chunkSsbo);
chunkSsbo = 0;
GL20.glDeleteProgram(shaderProgram);
shaderProgram = 0;
}
示例3: finalize
import org.lwjgl.opengl.GL15; //导入方法依赖的package包/类
/**
* Cleans up the VRAM of this VAO
*/
@Override
public void finalize() {
GL30.glDeleteVertexArrays(vaoid);
for(int vbo : bufferObjects)
GL15.glDeleteBuffers(vbo);
}
示例4: glDeleteBuffers
import org.lwjgl.opengl.GL15; //导入方法依赖的package包/类
public static void glDeleteBuffers(int buffer)
{
if (arbVbo)
{
ARBVertexBufferObject.glDeleteBuffersARB(buffer);
}
else
{
GL15.glDeleteBuffers(buffer);
}
}
示例5: close
import org.lwjgl.opengl.GL15; //导入方法依赖的package包/类
@Override
public void close() throws Exception
{
GL15.glDeleteBuffers(this.handle);
this.handle = 0;
VBOS.remove(this);
}
示例6: deleteShaderProgram
import org.lwjgl.opengl.GL15; //导入方法依赖的package包/类
public void deleteShaderProgram() {
GL15.glDeleteBuffers(vbo);
GL20.glDetachShader(shaderProgram, vshader);
GL20.glDetachShader(shaderProgram, fshader);
GL20.glDeleteShader(vshader);
vshader = 0;
GL20.glDeleteShader(fshader);
fshader = 0;
GL20.glDeleteProgram(shaderProgram);
shaderProgram = 0;
}
示例7: dispose
import org.lwjgl.opengl.GL15; //导入方法依赖的package包/类
public void dispose() {
GL30.glBindVertexArray(0);
GL15.glBindBuffer(GL15.GL_ARRAY_BUFFER, 0);
GL15.glBindBuffer(GL15.GL_ELEMENT_ARRAY_BUFFER, 0);
GL20.glDisableVertexAttribArray(0);
GL20.glDisableVertexAttribArray(1);
GL15.glDeleteBuffers(vbo);
GL15.glDeleteBuffers(vboTexture);
GL15.glDeleteBuffers(vboi);
GL30.glDeleteVertexArrays(vao);
}
示例8: cleanUp
import org.lwjgl.opengl.GL15; //导入方法依赖的package包/类
public void cleanUp() {
for (int vao : vaos) {
GL30.glDeleteVertexArrays(vao);
}
for (int vbo : vbos) {
GL15.glDeleteBuffers(vbo);
}
for (int texture : textures) {
GL11.glDeleteTextures(texture);
}
}
示例9: delete
import org.lwjgl.opengl.GL15; //导入方法依赖的package包/类
public void delete(){
GL15.glDeleteBuffers(vboId);
}
示例10: destroy
import org.lwjgl.opengl.GL15; //导入方法依赖的package包/类
public void destroy(){
GL30.glDeleteVertexArrays(vao);
GL15.glDeleteBuffers(vbo);
GL15.glDeleteBuffers(vto);
GL15.glDeleteBuffers(vboi);
}
示例11: delete
import org.lwjgl.opengl.GL15; //导入方法依赖的package包/类
public void delete() {
GL15.glDeleteBuffers(vboId);
}