public final class Tga extends TgaRead implements java.lang.Cloneable, ITextureIO
TgaRead.TgaHeader| Constructor and Description |
|---|
Tga() |
| Modifier and Type | Method and Description |
|---|---|
Tga |
clone() |
ITexture |
createTexture() |
int |
getBitsPerColor() |
int |
getBitsPerPixel() |
byte[] |
getColorMap() |
java.lang.String[] |
getExtensions(boolean read) |
int |
getNumColors() |
byte[] |
getTexels() |
boolean |
isPaletted() |
boolean |
isReadSupported(Stream stream) |
boolean |
isWriteSupported(Stream stream) |
ITexture |
readTexture(Stream stream) |
void |
setColorMap(byte[] colorMap,
int numColors) |
void |
setTexels(byte[] texels,
int destBitsPerTexel) |
void |
setTexture(ITexture texture,
boolean compressed) |
void |
write(Stream stream) |
void |
writeTexture(TextureWriterParam params,
ITexture texture) |
public final ITexture createTexture()
public int getBitsPerPixel()
public byte[] getTexels()
public void setTexels(byte[] texels,
int destBitsPerTexel)
texels - formats:
destBitsPerTexel - destination number of bits per texel.java.lang.IllegalArgumentException - when argument are not corresponding to the image typepublic boolean isPaletted()
public int getBitsPerColor()
public int getNumColors()
public byte[] getColorMap()
public void setColorMap(byte[] colorMap,
int numColors)
colorMap - texels in format [ARGB][ARGB][...]numColors - number of colorspublic void setTexture(ITexture texture, boolean compressed)
public boolean isReadSupported(Stream stream)
isReadSupported in interface ITextureIOstream - inputpublic ITexture readTexture(Stream stream) throws java.io.IOException
readTexture in interface ITextureIOstream - inputjava.io.IOException - if failpublic boolean isWriteSupported(Stream stream)
isWriteSupported in interface ITextureIOstream - outputpublic void writeTexture(TextureWriterParam params, ITexture texture) throws java.io.IOException
writeTexture in interface ITextureIOparams - texture writer parameterstexture - texture to writejava.io.IOException - if failpublic void write(Stream stream) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String[] getExtensions(boolean read)
getExtensions in interface ITextureIOread - TODOITextureIO may supportBonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com