Class Md2Header

java.lang.Object
com.ardor3d.extension.model.md2.Md2Header

final class Md2Header extends Object
Header of MD2: see also http://tfc.duke.free.fr/coding/md2-specs-en.html
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final int
    size in bytes of a frame
    (package private) final int
    identifier of the file: magic number: "IDP2"
    (package private) final int
    number of animation frames
    (package private) final int
    number of gl commands
    (package private) final int
    number of textures associated with the model
    (package private) final int
    number of texture coordinates
    (package private) final int
    number of triangles
    (package private) final int
    number of vertices per frame
    (package private) final int
    offset of EOF
    (package private) final int
    offset in the file for the frames data
    (package private) final int
    offset in the file for the gl commands data
    (package private) final int
    offset in the file for the texture data
    (package private) final int
    offset in the file for the texture coords
    (package private) final int
    offset in the file for the face data
    (package private) final int
    texture height in pixels
    (package private) final int
    texture width in pixels
    (package private) final int
    version number of the file (must be 8)
  • Constructor Summary

    Constructors
    Constructor
    Description
    Md2Header(int magic, int version, int skinWidth, int skinHeight, int frameSize, int numSkins, int numVertices, int numTexCoords, int numTriangles, int numGlCommands, int numFrames, int offsetSkins, int offsetTexCoords, int offsetTriangles, int offsetFrames, int offsetGlCommands, int offsetEnd)
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • magic

      final int magic
      identifier of the file: magic number: "IDP2"
    • version

      final int version
      version number of the file (must be 8)
    • skinWidth

      final int skinWidth
      texture width in pixels
    • skinHeight

      final int skinHeight
      texture height in pixels
    • frameSize

      final int frameSize
      size in bytes of a frame
    • numSkins

      final int numSkins
      number of textures associated with the model
    • numVertices

      final int numVertices
      number of vertices per frame
    • numTexCoords

      final int numTexCoords
      number of texture coordinates
    • numTriangles

      final int numTriangles
      number of triangles
    • numGlCommands

      final int numGlCommands
      number of gl commands
    • numFrames

      final int numFrames
      number of animation frames
    • offsetSkins

      final int offsetSkins
      offset in the file for the texture data
    • offsetTexCoords

      final int offsetTexCoords
      offset in the file for the texture coords
    • offsetTriangles

      final int offsetTriangles
      offset in the file for the face data
    • offsetFrames

      final int offsetFrames
      offset in the file for the frames data
    • offsetGlCommands

      final int offsetGlCommands
      offset in the file for the gl commands data
    • offsetEnd

      final int offsetEnd
      offset of EOF
  • Constructor Details

    • Md2Header

      Md2Header(int magic, int version, int skinWidth, int skinHeight, int frameSize, int numSkins, int numVertices, int numTexCoords, int numTriangles, int numGlCommands, int numFrames, int offsetSkins, int offsetTexCoords, int offsetTriangles, int offsetFrames, int offsetGlCommands, int offsetEnd)