Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
epoxy
GitHub Repository: epoxy/proj11
Path: blob/master/SLICK_HOME/src/org/newdawn/slick/opengl/ImageData.java
1461 views
1
package org.newdawn.slick.opengl;
2
3
import java.nio.ByteBuffer;
4
5
/**
6
* A description of any class providing ImageData in a form suitable for OpenGL texture
7
* creation.
8
*
9
* @author kevin
10
*/
11
public interface ImageData {
12
13
/**
14
* Get the last bit depth read from a TGA
15
*
16
* @return The last bit depth read
17
*/
18
public int getDepth();
19
20
/**
21
* Get the last width read from a TGA
22
*
23
* @return Get the last width in pixels fread from a TGA
24
*/
25
public int getWidth();
26
27
/**
28
* Get the last height read from a TGA
29
*
30
* @return Get the last height in pixels fread from a TGA
31
*/
32
public int getHeight();
33
34
/**
35
* Get the last required texture width for a loaded image
36
*
37
* @return Get the ast required texture width for a loaded image
38
*/
39
public int getTexWidth();
40
41
/**
42
* Get the ast required texture height for a loaded image
43
*
44
* @return Get the ast required texture height for a loaded image
45
*/
46
public int getTexHeight();
47
48
/**
49
* Get the store image
50
*
51
* @return The stored image
52
*/
53
public ByteBuffer getImageBufferData();
54
55
}
56