espresso3d.engine.fileloaders
Class E3DImageLoader
java.lang.Object
espresso3d.engine.fileloaders.E3DImageLoader
- public class E3DImageLoader
- extends java.lang.Object
- Author:
- espresso3d
Loads image (PNG, JPG, etc) files
|
Method Summary |
static java.awt.Image |
loadImage(java.lang.String name,
boolean isFromJar)
|
static E3DTexture |
loadImageIntoGL(E3DEngine engine,
java.lang.String textureName,
java.awt.Image image)
|
static void |
loadTextureSet(E3DEngine engine,
java.lang.String workingDirectory,
java.lang.String fullPathTextureSet,
java.util.HashMap textureSet)
Loads a texture set of format : , ;\n
into the textureSet map passed in with entries: value: Integer(glTextureAddress), key:texturename
It will -not- replace an item if its already in the map under texturename |
static void |
loadTextureSetFromJar(E3DEngine engine,
java.lang.String textureSetName,
java.util.HashMap textureSet)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
E3DImageLoader
public E3DImageLoader()
loadTextureSet
public static void loadTextureSet(E3DEngine engine,
java.lang.String workingDirectory,
java.lang.String fullPathTextureSet,
java.util.HashMap textureSet)
throws E3DInvalidFileFormatException,
java.io.IOException
- Loads a texture set of format : , ;\n
into the textureSet map passed in with entries: value: Integer(glTextureAddress), key:texturename
It will -not- replace an item if its already in the map under texturename
- Returns:
-
- Throws:
E3DInvalidFileFormatException
java.io.IOException
loadTextureSetFromJar
public static void loadTextureSetFromJar(E3DEngine engine,
java.lang.String textureSetName,
java.util.HashMap textureSet)
throws E3DInvalidFileFormatException,
java.io.IOException
- Throws:
E3DInvalidFileFormatException
java.io.IOException
loadImage
public static java.awt.Image loadImage(java.lang.String name,
boolean isFromJar)
throws java.io.IOException
- Throws:
java.io.IOException
loadImageIntoGL
public static E3DTexture loadImageIntoGL(E3DEngine engine,
java.lang.String textureName,
java.awt.Image image)