|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.opengl.util.DDSLoader.Header
protected static class DDSLoader.Header
The DDS file header.
| Field Summary | |
|---|---|
int |
alphaBitMask
The alpha bit mask. |
int |
bBitMask
The red, green, and blue bit masks. |
int |
caps1
The first set of capability bits. |
int |
caps2
The second set of capability bits. |
int |
depth
The depth. |
int |
flags
The image flags. |
String |
fourCC
The four CC code, if any. |
int |
gBitMask
The red, green, and blue bit masks. |
int |
height
The base image height. |
int |
mipMapCount
The number of mipmaps. |
int |
pitchOrLinearSize
The pitch or linear size. |
int |
pixelFormatFlags
The pixel format flags. |
int |
rBitMask
The red, green, and blue bit masks. |
int |
rgbBitCount
The RGB bit count. |
int |
width
The base image width. |
| Constructor Summary | |
|---|---|
DDSLoader.Header(ByteBuffer buf)
Reads the header from the specified buffer. |
|
| Method Summary | |
|---|---|
int |
getCompressedFormat()
Returns the OpenGL compressed format corresponding to the texture. |
int |
getLevels()
Returns the number of stored mipmap levels. |
int |
getUncompressedFormat()
Returns the OpenGL uncompressed format corresponding to the texture, or -1 if unknown. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int flags
public int height
public int width
public int pitchOrLinearSize
public int depth
public int mipMapCount
public int pixelFormatFlags
public String fourCC
public int rgbBitCount
public int rBitMask
public int gBitMask
public int bBitMask
public int alphaBitMask
public int caps1
public int caps2
| Constructor Detail |
|---|
public DDSLoader.Header(ByteBuffer buf)
throws IOException
IOException| Method Detail |
|---|
public int getLevels()
public int getUncompressedFormat()
throws IOException
IOException - if the format is unknown or unsupported.
public int getCompressedFormat()
throws IOException
IOException - if the format is unknown or unsupported.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||