jjdh API

jjdh.java.resource.loader
Class MD2Loader

java.lang.Object
  extended by jjdh.java.resource.Loader<MD2Mesh>
      extended by jjdh.java.resource.loader.MD2Loader

public class MD2Loader
extends Loader<MD2Mesh>

Loads 3D-Models given in the MD2 (Quake 2) Format.

Author:
Malte Mathiszig, Dennis Heidsiek

Field Summary
protected  com.sun.opengl.util.texture.Texture texture
           
 
Fields inherited from class jjdh.java.resource.Loader
provider, shortcut
 
Constructor Summary
MD2Loader()
           
MD2Loader(String shortcut)
           
 
Method Summary
protected  MD2Mesh decode(InputStream in)
           
 MD2Mesh load(String regex)
          Loads and decode a resource.
 MD2Mesh load(String md2Regex, String textureRegex)
           
 
Methods inherited from class jjdh.java.resource.Loader
load, load, loadSeveral, resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

texture

protected com.sun.opengl.util.texture.Texture texture
Constructor Detail

MD2Loader

public MD2Loader()

MD2Loader

public MD2Loader(String shortcut)
Method Detail

load

public final MD2Mesh load(String regex)
Description copied from class: Loader
Loads and decode a resource.

Overrides:
load in class Loader<MD2Mesh>
Parameters:
regex - a reference to the resource
Returns:
the loaded resource

load

public final MD2Mesh load(String md2Regex,
                          String textureRegex)

decode

protected MD2Mesh decode(InputStream in)
                  throws Exception
Specified by:
decode in class Loader<MD2Mesh>
Throws:
Exception

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.