org.jagatoo.loaders.textures
Interface AbstractTextureImage


public interface AbstractTextureImage

Insert type comment here.


Method Summary
 java.nio.ByteBuffer getDataBuffer()
           
 TextureImageFormat getFormat()
           
 int getHeight()
           
 TextureImageInternalFormat getInternalFormat()
           
 int getOriginalHeight()
           
 int getOriginalWidth()
           
 int getPixelSize()
           
 int getWidth()
           
 

Method Detail

getInternalFormat

TextureImageInternalFormat getInternalFormat()
Returns:
the image's internal-format.

getFormat

TextureImageFormat getFormat()
Returns:
the image's format.

getWidth

int getWidth()
Returns:
the image's actual width.

getHeight

int getHeight()
Returns:
the image's actual height.

getOriginalWidth

int getOriginalWidth()
Returns:
the image's original width (before scaling to powers of two).

getOriginalHeight

int getOriginalHeight()
Returns:
the image's original height (before scaling to powers of two).

getPixelSize

int getPixelSize()
Returns:
the image's pixel size in bytes (1, 2, 3, 4).

getDataBuffer

java.nio.ByteBuffer getDataBuffer()
Returns:
The image's ByteBuffer, that holds the image data in R/RG/RGB/RGBA format.