mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-10 22:01:52 +09:00
Former-commit-id: 1647fa32ef6894bd7db44f741f07c2f4dcdf9054 Former-commit-id: 0e5810dcfbe1fd59b13e7cabe9f1e93c5542da2d
55 lines
1.0 KiB
Java
55 lines
1.0 KiB
Java
package org.newdawn.slick.opengl;
|
|
|
|
import java.nio.ByteBuffer;
|
|
|
|
/**
|
|
* A description of any class providing ImageData in a form suitable for OpenGL texture
|
|
* creation.
|
|
*
|
|
* @author kevin
|
|
*/
|
|
public interface ImageData {
|
|
|
|
/**
|
|
* Get the last bit depth read from a TGA
|
|
*
|
|
* @return The last bit depth read
|
|
*/
|
|
public int getDepth();
|
|
|
|
/**
|
|
* Get the last width read from a TGA
|
|
*
|
|
* @return Get the last width in pixels fread from a TGA
|
|
*/
|
|
public int getWidth();
|
|
|
|
/**
|
|
* Get the last height read from a TGA
|
|
*
|
|
* @return Get the last height in pixels fread from a TGA
|
|
*/
|
|
public int getHeight();
|
|
|
|
/**
|
|
* Get the last required texture width for a loaded image
|
|
*
|
|
* @return Get the ast required texture width for a loaded image
|
|
*/
|
|
public int getTexWidth();
|
|
|
|
/**
|
|
* Get the ast required texture height for a loaded image
|
|
*
|
|
* @return Get the ast required texture height for a loaded image
|
|
*/
|
|
public int getTexHeight();
|
|
|
|
/**
|
|
* Get the store image
|
|
*
|
|
* @return The stored image
|
|
*/
|
|
public ByteBuffer getImageBufferData();
|
|
|
|
} |