espresso3d.engine.fileloaders
Class E3DImageLoader
java.lang.Object
espresso3d.engine.fileloaders.E3DImageLoader
- public class E3DImageLoader
- extends java.lang.Object
- Author:
- espresso3d
Loads image (PNG) files
|
Method Summary |
static java.awt.Image |
loadImage(java.lang.String name,
boolean isFromJar)
|
static int |
loadImageIntoGL(java.awt.Image image)
|
static void |
loadTextureSet(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(java.lang.String textureSetName,
java.util.HashMap textureSet)
|
static void |
readTextureSet(java.lang.String workingDirectory,
java.io.BufferedReader textureSetFile,
java.util.HashMap textureSet,
boolean isFromJar)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
E3DImageLoader
public E3DImageLoader()
loadTextureSet
public static void loadTextureSet(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(java.lang.String textureSetName,
java.util.HashMap textureSet)
throws E3DInvalidFileFormatException,
java.io.IOException
- Throws:
E3DInvalidFileFormatException
java.io.IOException
readTextureSet
public static void readTextureSet(java.lang.String workingDirectory,
java.io.BufferedReader textureSetFile,
java.util.HashMap textureSet,
boolean isFromJar)
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 int loadImageIntoGL(java.awt.Image image)