Package com.jme3.texture.plugins
Class TGALoader
java.lang.Object
com.jme3.texture.plugins.TGALoader
- All Implemented Interfaces:
 AssetLoader
TextureManager provides static methods for building a
 Texture object. Typically, the information supplied is the
 filename and the texture properties.- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int - 
Constructor Summary
Constructors - 
Method Summary
 
- 
Field Details
- 
TYPE_NO_IMAGE
public static final int TYPE_NO_IMAGE- See Also:
 
 - 
TYPE_COLORMAPPED
public static final int TYPE_COLORMAPPED- See Also:
 
 - 
TYPE_TRUECOLOR
public static final int TYPE_TRUECOLOR- See Also:
 
 - 
TYPE_BLACKANDWHITE
public static final int TYPE_BLACKANDWHITE- See Also:
 
 - 
TYPE_COLORMAPPED_RLE
public static final int TYPE_COLORMAPPED_RLE- See Also:
 
 - 
TYPE_TRUECOLOR_RLE
public static final int TYPE_TRUECOLOR_RLE- See Also:
 
 - 
TYPE_BLACKANDWHITE_RLE
public static final int TYPE_BLACKANDWHITE_RLE- See Also:
 
 
 - 
 - 
Constructor Details
- 
TGALoader
public TGALoader() 
 - 
 - 
Method Details
- 
load
Description copied from interface:AssetLoaderLoads asset from the given input stream, parsing it into an application-usable object.- Specified by:
 loadin interfaceAssetLoader- Parameters:
 info- the located asset- Returns:
 - An object representing the resource.
 - Throws:
 IOException- If an I/O error occurs while loading
 - 
load
loadImageis a manual image loader which is entirely independent of AWT. OUT: RGB888 or RGBA8888 Image object- Parameters:
 in- InputStream of an uncompressed 24b RGB or 32b RGBA TGAflip- Flip the image vertically- Returns:
 Imageobject that contains the image, either as a RGB888 or RGBA8888- Throws:
 IOException- if an I/O error occurs
 
 -