org.gljava.opengl.model
Class XMLModelLoader
java.lang.Object
org.gljava.opengl.model.XMLModelLoader
public class XMLModelLoader
- extends java.lang.Object
Utility class to parse gljava (.xml) format files and produce the Model object instances described.
- Version:
- $Id: XMLModelLoader.java,v 1.1 2005/02/10 04:18:42 ivan_ganza Exp $
- Author:
- Ivan Z. Ganza
Method Summary |
static java.util.List |
loadModel(java.lang.String path)
|
static void |
main(java.lang.String[] args)
|
static java.util.List |
parse(java.util.List l,
Element e)
|
static java.util.List |
parseFaces(java.util.List l,
Element e)
|
static Mesh |
parseMesh(Element e)
|
static java.util.List |
parseVertices(java.util.List l,
Element e)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLModelLoader
public XMLModelLoader()
loadModel
public static java.util.List loadModel(java.lang.String path)
throws java.io.IOException,
java.io.FileNotFoundException,
JDOMException
- Throws:
java.io.IOException
java.io.FileNotFoundException
JDOMException
parse
public static java.util.List parse(java.util.List l,
Element e)
throws JDOMException
- Throws:
JDOMException
parseMesh
public static Mesh parseMesh(Element e)
throws JDOMException
- Throws:
JDOMException
parseVertices
public static java.util.List parseVertices(java.util.List l,
Element e)
throws JDOMException
- Throws:
JDOMException
parseFaces
public static java.util.List parseFaces(java.util.List l,
Element e)
throws JDOMException
- Throws:
JDOMException
main
public static void main(java.lang.String[] args)