com.jme3.texture.plugins
Class HDRLoader

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

public class HDRLoader
extends java.lang.Object
implements AssetLoader


Constructor Summary
HDRLoader()
           
HDRLoader(boolean writeRGBE)
           
 
Method Summary
static void convertFloatToRGBE(byte[] rgbe, float red, float green, float blue)
           
static void convertRGBEtoFloat(byte[] rgbe, float[] rgbf)
           
static void convertRGBEtoFloat2(byte[] rgbe, float[] rgbf)
           
static void convertRGBEtoFloat3(byte[] rgbe, float[] rgbf)
           
 java.lang.Object load(AssetInfo info)
          Loads asset from the given input stream, parsing it into an application-usable object.
 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
 

Constructor Detail

HDRLoader

public HDRLoader(boolean writeRGBE)

HDRLoader

public HDRLoader()
Method Detail

convertFloatToRGBE

public static void convertFloatToRGBE(byte[] rgbe,
                                      float red,
                                      float green,
                                      float blue)

convertRGBEtoFloat

public static void convertRGBEtoFloat(byte[] rgbe,
                                      float[] rgbf)

convertRGBEtoFloat2

public static void convertRGBEtoFloat2(byte[] rgbe,
                                       float[] rgbf)

convertRGBEtoFloat3

public static void convertRGBEtoFloat3(byte[] rgbe,
                                       float[] rgbf)

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