org.jagatoo.loaders.models.md2
Class MD2Header

java.lang.Object
  extended by org.jagatoo.loaders.models.md2.MD2Header

public class MD2Header
extends java.lang.Object

The header of a Quake 2 Model file.


Field Summary
 int frameSize
           
static int MAGIC_NUMBER
           
 int numFrames
           
 int numGlCommandBytes
           
 int numSkins
           
 int numTexCoords
           
 int numTriangles
           
 int numVertices
           
 int offsetEnd
           
 int offsetFrames
           
 int offsetGlCommands
           
 int offsetSkins
           
 int offsetTexCoords
           
 int offsetTriangles
           
 int skinHeight
           
 int skinWidth
           
 int version
           
 
Method Summary
static MD2Header readHeader(LittleEndianDataInputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAGIC_NUMBER

public static final int MAGIC_NUMBER
See Also:
Constant Field Values

version

public final int version

skinWidth

public final int skinWidth

skinHeight

public final int skinHeight

frameSize

public final int frameSize

numSkins

public final int numSkins

numVertices

public final int numVertices

numTexCoords

public final int numTexCoords

numTriangles

public final int numTriangles

numGlCommandBytes

public final int numGlCommandBytes

numFrames

public final int numFrames

offsetSkins

public final int offsetSkins

offsetTexCoords

public final int offsetTexCoords

offsetTriangles

public final int offsetTriangles

offsetFrames

public final int offsetFrames

offsetGlCommands

public final int offsetGlCommands

offsetEnd

public final int offsetEnd
Method Detail

readHeader

public static final MD2Header readHeader(LittleEndianDataInputStream in)
                                  throws java.io.IOException,
                                         IncorrectFormatException
Throws:
java.io.IOException
IncorrectFormatException