Package com.ardor3d.extension.model.md3
Class Md3Header
java.lang.Object
com.ardor3d.extension.model.md3.Md3Header
header of MD3: http://en.wikipedia.org/wiki/MD3_%28file_format%29#MD3_header
-
Field Summary
Modifier and TypeFieldDescription(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
-
Method Summary
-
Field Details
-
_magic
identifier of the file: magic number: "IDP3" -
_version
version number of the file -
_name
name, usually its pathname in the PK3. ASCII character string, NULL-terminated (C-style) -
_flags
flags, unused yet -
_numFrames
Number of Frame objects, with a maximum of MD3_MAX_FRAMES. Current value of MD3_MAX_FRAMES is 1024. -
_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
Number of Surface objects, with a maximum of MD3_MAX_SURFACES. Current value of MD3_MAX_SURFACES is 32. -
_numSkins
Number of Skin objects, unused -
_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
Relative offset from start of MD3 where Tag objects start. Similarly written sequentially. -
_offsetSurface
Relative offset from start of MD3 where Surface objects start. Again, written sequentially. -
_offsetEnd
Relative offset from start of MD3 to the end of the MD3 object
-
-
Constructor Details
-
Md3Header
-