|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jmex.model.converters.FormatConverter
com.jmex.model.converters.Md2ToJme
public class Md2ToJme
Started Date: Jun 14, 2004
This class converts a .md2 file to jME's binary format.
Field Summary |
---|
Fields inherited from class com.jmex.model.converters.FormatConverter |
---|
properties |
Constructor Summary | |
---|---|
Md2ToJme()
|
Method Summary | |
---|---|
void |
convert(java.io.InputStream Md2Stream,
java.io.OutputStream o)
It creates a node from a .md2 stream and then writes that node to the given OutputStream in jME's binary format. |
static KeyframeController |
findController(Node model)
This function returns the KeyframeController that animates an MD2 converted mesh. |
static void |
main(java.lang.String[] args)
Converts an Md2 file to jME format. |
Methods inherited from class com.jmex.model.converters.FormatConverter |
---|
attemptFileConvert, clearProperty, getProperty, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Md2ToJme()
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- The array of parameterspublic void convert(java.io.InputStream Md2Stream, java.io.OutputStream o) throws java.io.IOException
convert
in class FormatConverter
Md2Stream
- A stream representing the .md2 fileo
- The stream to write it's binary equivalent to
java.io.IOException
- If anything funky goes wrong with reading informationpublic static KeyframeController findController(Node model)
model
- The MD2 mesh.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |