本文整理汇总了Java中org.lwjgl.opengl.GL11.glDeleteTextures方法的典型用法代码示例。如果您正苦于以下问题:Java GL11.glDeleteTextures方法的具体用法?Java GL11.glDeleteTextures怎么用?Java GL11.glDeleteTextures使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.lwjgl.opengl.GL11
的用法示例。
在下文中一共展示了GL11.glDeleteTextures方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: cleanUp
import org.lwjgl.opengl.GL11; //导入方法依赖的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: deleteTexture
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public void deleteTexture(int i)
{
textureNameToImageMap.remove(Integer.valueOf(i));
singleIntBuffer.clear();
singleIntBuffer.put(i);
singleIntBuffer.flip();
GL11.glDeleteTextures(singleIntBuffer);
}
示例3: dispose
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public void dispose() {
GL30.glDeleteFramebuffers(id);
for(int i : textureids) {
GL11.glDeleteTextures(i);
}
if(dboid != 0)
GL30.glDeleteRenderbuffers(dboid);
}
示例4: deleteTexture
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static void deleteTexture(int texture)
{
GL11.glDeleteTextures(texture);
for (GlStateManager.TextureState glstatemanager$texturestate : textureState)
{
if (glstatemanager$texturestate.textureName == texture)
{
glstatemanager$texturestate.textureName = -1;
}
}
}
示例5: cleanUp
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public void cleanUp() {//call when closing the game
GL30.glDeleteFramebuffers(reflectionFrameBuffer);
GL11.glDeleteTextures(reflectionTexture);
GL30.glDeleteRenderbuffers(reflectionDepthBuffer);
GL30.glDeleteFramebuffers(refractionFrameBuffer);
GL11.glDeleteTextures(refractionTexture);
GL11.glDeleteTextures(refractionDepthTexture);
}
示例6: close
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
@Override
public void close() throws Exception
{
GL11.glDeleteTextures(this.handle);
TEXTURES.remove(this);
}
示例7: cleanUp
import org.lwjgl.opengl.GL11; //导入方法依赖的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);
}
}
示例8: deleteTexture
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static void deleteTexture(int texture)
{
if (texture != 0)
{
GL11.glDeleteTextures(texture);
for (GlStateManager.TextureState glstatemanager$texturestate : textureState)
{
if (glstatemanager$texturestate.textureName == texture)
{
glstatemanager$texturestate.textureName = 0;
}
}
}
}
示例9: glDeleteTextures
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
/**
* @see org.newdawn.slick.opengl.renderer.SGL#glDeleteTextures(java.nio.IntBuffer)
*/
public void glDeleteTextures(IntBuffer buffer) {
GL11.glDeleteTextures(buffer);
}
示例10: dispose
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public void dispose()
{
assertCorrectTextureID();
GL11.glDeleteTextures(IntBuffer.wrap(new int[] {textureID}));
textureID = -1;
}
示例11: dispose
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
/**
* Releases this texture from VRAM
* @param activeTexture The active texture to release
*/
public void dispose(int activeTexture) {
GL13.glActiveTexture(activeTexture);
GL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);
GL11.glDeleteTextures(id);
}
示例12: delete
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
@Override
public void delete() {
GL11.glDeleteTextures(getBufferId());
}
示例13: unLoad
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
private void unLoad() {
if(texture != null)
GL11.glDeleteTextures(texture.getGlTextureId());
texture = null;
}
示例14: delete
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public void delete() {
GL11.glDeleteTextures(textureId);
}
示例15: destroy
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public void destroy() {
IntBuffer scratch = BufferUtils.createIntBuffer(1);
scratch.put(0, fontTextureID);
GL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);
GL11.glDeleteTextures(scratch);
}