com.jme3.texture.plugins
Class AWTLoader

java.lang.Object
  extended by com.jme3.texture.plugins.AWTLoader
All Implemented Interfaces:
AssetLoader

public class AWTLoader
extends java.lang.Object
implements AssetLoader


Field Summary
static java.awt.image.ColorModel AWT_RGBA4444
           
static java.awt.image.ColorModel AWT_RGBA5551
           
 
Constructor Summary
AWTLoader()
           
 
Method Summary
 java.lang.Object load(AssetInfo info)
          Loads asset from the given input stream, parsing it into an application-usable object.
 Image load(java.awt.image.BufferedImage img, boolean flipY)
           
 Image load(java.io.InputStream in, boolean flipY)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AWT_RGBA4444

public static final java.awt.image.ColorModel AWT_RGBA4444

AWT_RGBA5551

public static final java.awt.image.ColorModel AWT_RGBA5551
Constructor Detail

AWTLoader

public AWTLoader()
Method Detail

load

public Image load(java.awt.image.BufferedImage img,
                  boolean flipY)

load

public Image load(java.io.InputStream in,
                  boolean flipY)
           throws java.io.IOException
Throws:
java.io.IOException

load

public java.lang.Object load(AssetInfo info)
                      throws java.io.IOException
Description copied from interface: AssetLoader
Loads asset from the given input stream, parsing it into an application-usable object.

Specified by:
load in interface AssetLoader
Returns:
An object representing the resource.
Throws:
java.io.IOException - If an I/O error occurs while loading