|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jmex.model.ogrexml.MaterialLoader
public class MaterialLoader
Reads OGRE3D material files
MaterialLoader.getMaterials() to get a map of materials.
call Material.apply(Spatial) to apply material to a model.
Constructor Summary | |
---|---|
MaterialLoader()
|
Method Summary | |
---|---|
java.util.Map<java.lang.String,Material> |
getMaterials()
|
void |
load(java.io.InputStream in)
REPLACE the materialsMap of this MaterialLoader instance. |
void |
load(java.net.URI uri)
Convenience wrapper. |
void |
load(java.net.URL url)
REPLACE the materialsMap of this MaterialLoader instance, automatically adding the containing directory to the resource locator paths for the duration of the load. |
double |
nextNumber()
|
java.lang.String |
nextStatement()
|
java.lang.String |
nextStatementRightCurlyNull()
|
void |
println(java.lang.String str)
Deprecated. If you want to see debugging messages, you should use the logging infrastructure which is there for this purpose. This allows you to specify when to see messages declaratively, without changing any source code. |
ColorRGBA |
readColor()
|
float[] |
readFloatArray()
Deprecated. Haven't checked the history, but this method is now a no-op. |
Material |
readMaterial()
|
void |
readMaterialStatement(Material material)
|
void |
readPass(Material material)
|
void |
readPassStatement(Material material)
|
void |
readTechnique(Material material)
|
void |
readTechniqueStatement(Material material)
|
void |
readTextureUnit(Material material)
|
void |
readUnitStatement(TextureState tex,
int unit)
|
void |
setupReader(java.io.StreamTokenizer reader)
|
java.lang.String |
tokenName()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MaterialLoader()
Method Detail |
---|
public java.util.Map<java.lang.String,Material> getMaterials()
public java.lang.String tokenName()
public java.lang.String nextStatementRightCurlyNull() throws java.io.IOException
java.io.IOException
public java.lang.String nextStatement() throws java.io.IOException
java.io.IOException
public double nextNumber() throws java.io.IOException
java.io.IOException
public ColorRGBA readColor() throws java.io.IOException
java.io.IOException
@Deprecated public float[] readFloatArray()
public void readMaterialStatement(Material material) throws java.io.IOException
java.io.IOException
public void readTechniqueStatement(Material material) throws java.io.IOException
java.io.IOException
public void readUnitStatement(TextureState tex, int unit) throws java.io.IOException
java.io.IOException
public void readTextureUnit(Material material) throws java.io.IOException
java.io.IOException
public void readPassStatement(Material material) throws java.io.IOException
java.io.IOException
public void readPass(Material material) throws java.io.IOException
java.io.IOException
public void readTechnique(Material material) throws java.io.IOException
java.io.IOException
public Material readMaterial() throws java.io.IOException
java.io.IOException
public void setupReader(java.io.StreamTokenizer reader)
public void load(java.io.InputStream in) throws java.io.IOException
java.io.IOException
@Deprecated public void println(java.lang.String str)
public void load(java.net.URI uri) throws java.io.IOException
java.io.IOException
load(URL)
public void load(java.net.URL url) throws java.io.IOException
An example of invoking this method for a filesystem file:
materialLoader.load(file.toURI());
java.io.IOException
getMaterials()
,
RelativeResourceLocator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |