List of usage examples for org.lwjgl.opengl GL11 glDeleteTextures
public static void glDeleteTextures(@NativeType("GLuint const *") int[] textures)
From source file:shadowmage.meim.client.gui.GuiTextureElement.java
License:Open Source License
public void allocateTexture() { if (openGLTextureNumber > 0) { GL11.glDeleteTextures(openGLTextureNumber); }/*from w w w . j av a2 s .c o m*/ openGLTextureNumber = GL11.glGenTextures(); this.updateTextureContents(image); }
From source file:shadowmage.meim.client.texture.TextureManager.java
License:Open Source License
public static void allocateTexture() { if (texNum >= 0) { GL11.glDeleteTextures(texNum); }// w w w .j a v a2 s.c om texNum = GL11.glGenTextures(); bindTexture(); for (int i = 0; i < 256 * 256; i++) { dataBuffer.put(i, 0xfffffff); } dataBuffer.rewind(); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_S, GL11.GL_CLAMP); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_T, GL11.GL_CLAMP); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_NEAREST); //GL11.GL_NEAREST); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_NEAREST); //GL11.GL_NEAREST); uploadTextureRGBAInts(dataBuffer, 256, 256);//upload empty data to texture so that it is 'valid'? resetBoundTexture(); }
From source file:tk.ivybits.engine.gl.GL.java
License:Open Source License
public static void glDeleteTextures(IntBuffer a) { GL11.glDeleteTextures(a); }
From source file:tk.ivybits.engine.gl.GL.java
License:Open Source License
public static void glDeleteTextures(int a) { GL11.glDeleteTextures(a); }
From source file:wrath.client.graphics.Texture.java
License:Open Source License
/** * Don't run this method, instead use {@link #destroyTexture()}! */ @Override public void close() { GL11.glDeleteTextures(texID); }
From source file:zildo.fwk.opengl.Utils.java
License:Open Source License
public static void cleanTexture(int id) { GL11.glDeleteTextures(getBufferWithId(id)); }
From source file:zildo.platform.opengl.GLUtils.java
License:Open Source License
public static void cleanTexture(int id) { GL11.glDeleteTextures(ZUtils.getBufferWithId(id)); }