|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.rico.engine.geometry.AbstractMesh
de.rico.engine.geometry.MeshVA
de.rico.engine.geometry.modelloader.md2.ModelMD2
public class ModelMD2
This class represents a model read in from the a file with the MD2 format.
Constructor Summary | |
---|---|
ModelMD2(boolean smooth)
Creates a new MD2 model object. |
|
ModelMD2(boolean smooth,
BoundingVolume type)
Creates a new MD2 mesh object, optionally smooth shaded. |
Method Summary | |
---|---|
java.lang.String |
getFilePath()
Returns the file path of the model file used. |
void |
load(java.lang.String modelFile,
float scale)
This method loads a model from the specified file. |
Methods inherited from class de.rico.engine.geometry.MeshVA |
---|
addAnimation, addFaces, destroy, draw, finishModel, getAnimation, getAnimations, getCurrentAnimation, getFaces, getFacesTransformed, getTotalFrameCount, removeAnimation, setAnimation, specializedDraw, update |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModelMD2(boolean smooth)
smooth
- shade mesh smoothly? --> true=yes, false=nopublic ModelMD2(boolean smooth, BoundingVolume type)
smooth
- shade mesh smoothly? --> true=yes, false=notype
- value from the BoundingVolume enumerationMethod Detail |
---|
public java.lang.String getFilePath()
ImportableModelIface
getFilePath
in interface ImportableModelIface
public void load(java.lang.String modelFile, float scale)
ImportableModelIface
load
in interface ImportableModelIface
modelFile
- path to the model filescale
- scale factor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |