Package com.jme3.texture.plugins
Class HDRLoader
java.lang.Object
com.jme3.texture.plugins.HDRLoader
- All Implemented Interfaces:
AssetLoader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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) Loads asset from the given input stream, parsing it into an application-usable object.load
(InputStream in, boolean flipY)
-
Constructor Details
-
HDRLoader
public HDRLoader(boolean writeRGBE) -
HDRLoader
public HDRLoader()
-
-
Method Details
-
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
- Throws:
IOException
-
load
Description copied from interface:AssetLoader
Loads asset from the given input stream, parsing it into an application-usable object.- Specified by:
load
in interfaceAssetLoader
- Parameters:
info
- the located asset- Returns:
- An object representing the resource.
- Throws:
IOException
- If an I/O error occurs while loading
-