com.jme.util
Class TGALoader

java.lang.Object
  extended bycom.jme.util.TGALoader

public final class TGALoader
extends java.lang.Object

TextureManager provides static methods for building a Texture object. Typically, the information supplied is the filename and the texture properties.

Version:
$Id: TGALoader.java,v 1.1 2004/09/06 18:17:44 renanse Exp $
Author:
Mark Powell

Method Summary
static Image loadImage(java.io.InputStream fis)
          loadImage is a manual image loader which is entirely independent of AWT.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadImage

public static Image loadImage(java.io.InputStream fis)
                       throws java.io.IOException
loadImage is a manual image loader which is entirely independent of AWT. OUT: RGB8888 or RGBA8888 jme.image.Image object

Parameters:
fis - InputStream of an uncompressed 24b RGB or 32b RGBA TGA
Returns:
com.jme.image.Image object that contains the image, either as a RGB888 or RGBA8888
Throws:
java.io.IOException