mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-11 22:31:52 +09:00
added sources for Slick
Former-commit-id: 1647fa32ef6894bd7db44f741f07c2f4dcdf9054 Former-commit-id: 0e5810dcfbe1fd59b13e7cabe9f1e93c5542da2d
This commit is contained in:
55
lib/slick-source/org/newdawn/slick/opengl/ImageData.java
Normal file
55
lib/slick-source/org/newdawn/slick/opengl/ImageData.java
Normal file
@@ -0,0 +1,55 @@
|
||||
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();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user