Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## simogl.model.modelloader
Class MD2Importer

    java.lang.Object
      simogl.model.modelloader.MD2Importer

    public class MD2Importer

extends java.lang.Object

The MD2Importer can be used to load models in Quake2 file format

Author:
  Malte Mathiszig

Constructor Summary
`MD2Importer()`

Method Summary
`static MeshVA` | `importModel(java.io.File file, int keyframe, int preferredSkin, com.sun.opengl.util.texture.Texture texture, float scale)` Loads a model from a md2 file and makes a mesh of it.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### MD2Importer

    public MD2Importer()

Method Detail

### importModel

    public static MeshVA importModel(java.io.File file,
                                     int keyframe,
                                     int preferredSkin,
                                     com.sun.opengl.util.texture.Texture texture,
                                     float scale)

  Loads a model from a md2 file and makes a mesh of it.

  Parameters:
    `file` - md2 model file from the resource folder
    `keyframe` - number of the keyframe that ought to be imported
    `preferredSkin` - number of the skin that ought to be imported
    `texture` - the texture for the model
    `scale` - a scale factor that effects the size of the model
  Returns:
    A vertex array mesh of the model

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD