Class Md3Header

java.lang.Object
com.ardor3d.extension.model.md3.Md3Header

final class Md3Header extends Object
header of MD3: http://en.wikipedia.org/wiki/MD3_%28file_format%29#MD3_header
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final int
    flags, unused yet
    (package private) final int
    identifier of the file: magic number: "IDP3"
    (package private) final String
    name, usually its pathname in the PK3.
    (package private) final int
    Number of Frame objects, with a maximum of MD3_MAX_FRAMES.
    (package private) final int
    Number of Skin objects, unused
    (package private) final int
    Number of Surface objects, with a maximum of MD3_MAX_SURFACES.
    (package private) final int
    Number of Tag objects, with a maximum of MD3_MAX_TAGS.
    (package private) final int
    Relative offset from start of MD3 to the end of the MD3 object
    (package private) final int
    Relative offset from start of MD3 object where Frame objects start.
    (package private) final int
    Relative offset from start of MD3 where Surface objects start.
    (package private) final int
    Relative offset from start of MD3 where Tag objects start.
    (package private) final int
    version number of the file
  • Constructor Summary

    Constructors
    Constructor
    Description
    Md3Header(int magic, int version, String name, int flags, int numFrames, int numTags, int numSurfaces, int numSkins, int offsetFrame, int offsetTag, int offsetSurface, 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: "IDP3"
    • _version

      final int _version
      version number of the file
    • _name

      final String _name
      name, usually its pathname in the PK3. ASCII character string, NULL-terminated (C-style)
    • _flags

      final int _flags
      flags, unused yet
    • _numFrames

      final int _numFrames
      Number of Frame objects, with a maximum of MD3_MAX_FRAMES. Current value of MD3_MAX_FRAMES is 1024.
    • _numTags

      final int _numTags
      Number of Tag objects, with a maximum of MD3_MAX_TAGS. Current value of MD3_MAX_TAGS is 16. There is one set of tags per frame so the total number of tags to read is (NUM_TAGS * NUM_FRAMES).
    • _numSurfaces

      final int _numSurfaces
      Number of Surface objects, with a maximum of MD3_MAX_SURFACES. Current value of MD3_MAX_SURFACES is 32.
    • _numSkins

      final int _numSkins
      Number of Skin objects, unused
    • _offsetFrame

      final int _offsetFrame
      Relative offset from start of MD3 object where Frame objects start. The Frame objects are written sequentially, that is, when you read one Frame object, you do not need to seek() for the next object.
    • _offsetTag

      final int _offsetTag
      Relative offset from start of MD3 where Tag objects start. Similarly written sequentially.
    • _offsetSurface

      final int _offsetSurface
      Relative offset from start of MD3 where Surface objects start. Again, written sequentially.
    • _offsetEnd

      final int _offsetEnd
      Relative offset from start of MD3 to the end of the MD3 object
  • Constructor Details

    • Md3Header

      Md3Header(int magic, int version, String name, int flags, int numFrames, int numTags, int numSurfaces, int numSkins, int offsetFrame, int offsetTag, int offsetSurface, int offsetEnd)