|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jmex.model.ogrexml.OgreLoader
public class OgreLoader
Loads Ogre MESH.XML and SKELETON.XML files
You must call OgreLoader.setMaterials otherwise OgreLoader won't
find the materials.
Constructor Summary | |
---|---|
OgreLoader()
|
Method Summary | |
---|---|
OgreEntityNode |
loadModel(java.net.URL url)
Legacy wrapper. |
OgreEntityNode |
loadModel(java.net.URL url,
java.lang.String nodeName)
Load a MESH.XML model from the specified URL, automatically adding the containing directory to the Model resource locator paths for the duration of the load (in order to pull in reference skeletons files). |
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. |
void |
setMaterials(java.util.Map<java.lang.String,Material> materials)
Specify the mapping of materials to use when reading submeshes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OgreLoader()
Method Detail |
---|
@Deprecated public void println(java.lang.String str)
public void setMaterials(java.util.Map<java.lang.String,Material> materials)
materials
- public OgreEntityNode loadModel(java.net.URL url) throws java.io.IOException, ModelFormatException
java.io.IOException
ModelFormatException
loadModel(URL, String)
public OgreEntityNode loadModel(java.net.URL url, java.lang.String nodeName) throws java.io.IOException, ModelFormatException
url
- The URL that specifies the mesh.xml filenodeName
- The name of the generated OgreNode.
If null, then will use the last segment of the URL.
java.io.IOException
ModelFormatException
RelativeResourceLocator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |