Path: blob/master/SLICK_HOME/src/org/newdawn/slick/opengl/Texture.java
1461 views
package org.newdawn.slick.opengl;12/**3* The description of a texture loaded by the TextureLoader utility4*5* @author kevin6*/7public interface Texture {89/**10* Check if the texture has alpha11*12* @return True if the texture has alpha13*/14public boolean hasAlpha();1516/**17* Get the reference from which this texture was loaded18*19* @return The reference from which this texture was loaded20*/21public String getTextureRef();2223/**24* Bind the GL context to a texture25*/26public void bind();2728/**29* Get the height of the original image30*31* @return The height of the original image32*/33public int getImageHeight();3435/**36* Get the width of the original image37*38* @return The width of the original image39*/40public int getImageWidth();4142/**43* Get the height of the physical texture44*45* @return The height of physical texture46*/47public float getHeight();4849/**50* Get the width of the physical texture51*52* @return The width of physical texture53*/54public float getWidth();5556/**57* Get the height of the actual texture58*59* @return The height of the actual texture60*/61public int getTextureHeight();6263/**64* Get the width of the actual texture65*66* @return The width of the actual texture67*/68public int getTextureWidth();6970/**71* Destroy the texture reference72*/73public void release();7475/**76* Get the OpenGL texture ID for this texture77*78* @return The OpenGL texture ID79*/80public int getTextureID();8182/**83* Get the pixel data from the card for this texture84*85* @return The texture data from the card for this texture86*/87public byte[] getTextureData();8889}9091