Class Md3Surface

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

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

    Fields
    Modifier and Type
    Field
    Description
    (package private) final int
    flags
    (package private) final int
     
    (package private) final String
    name
    (package private) final Vector3[][]
    Triangles' normals
    (package private) final int
    Number of animation frames.
    (package private) final int
    Number of Shader objects defined in this Surface, with a limit of MD3_MAX_SHADERS.
    (package private) final int
    Number of Triangle objects defined in this Surface, maximum of MD3_MAX_TRIANGLES.
    (package private) final int
    Number of Vertex objects defined in this Surface, up to MD3_MAX_VERTS.
    (package private) final int
    Relative offset from SURFACE_START to where the Surface object ends.
    (package private) final int
    Relative offset from SURFACE_START where the list of Shader objects starts.
    (package private) final int
    Relative offset from SURFACE_START where the list of ST objects (s-t texture coordinates) starts.
    (package private) final int
    Relative offset from SURFACE_START where the list of Triangle objects starts.
    (package private) final int
    Relative offset from SURFACE_START where the list of Vertex objects (X-Y-Z-N vertices) starts.
    (package private) final Vector2[]
    Texture coordinates of triangles' vertices
    (package private) final int[]
    Indices of triangles' vertices
    (package private) final Vector3[][]
    Triangles' vertices
  • Constructor Summary

    Constructors
    Constructor
    Description
    Md3Surface(int magic, String name, int flags, int numFrames, int numShaders, int numVerts, int numTriangles, int offsetTriangles, int offsetShaders, int offsetTexCoords, int offsetXyzNormals, 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
    • _name

      final String _name
      name
    • _flags

      final int _flags
      flags
    • _numFrames

      final int _numFrames
      Number of animation frames. This should match NUM_FRAMES in the MD3 header.
    • _numShaders

      final int _numShaders
      Number of Shader objects defined in this Surface, with a limit of MD3_MAX_SHADERS. Current value of MD3_MAX_SHADERS is 256.
    • _numVerts

      final int _numVerts
      Number of Vertex objects defined in this Surface, up to MD3_MAX_VERTS. Current value of MD3_MAX_VERTS is 4096.
    • _numTriangles

      final int _numTriangles
      Number of Triangle objects defined in this Surface, maximum of MD3_MAX_TRIANGLES. Current value of MD3_MAX_TRIANGLES is 8192.
    • _offsetTriangles

      final int _offsetTriangles
      Relative offset from SURFACE_START where the list of Triangle objects starts.
    • _offsetShaders

      final int _offsetShaders
      Relative offset from SURFACE_START where the list of Shader objects starts.
    • _offsetTexCoords

      final int _offsetTexCoords
      Relative offset from SURFACE_START where the list of ST objects (s-t texture coordinates) starts.
    • _offsetXyzNormals

      final int _offsetXyzNormals
      Relative offset from SURFACE_START where the list of Vertex objects (X-Y-Z-N vertices) starts.
    • _offsetEnd

      final int _offsetEnd
      Relative offset from SURFACE_START to where the Surface object ends.
    • _triIndexes

      final int[] _triIndexes
      Indices of triangles' vertices
    • _texCoords

      Texture coordinates of triangles' vertices
    • _verts

      final Vector3[][] _verts
      Triangles' vertices
    • _norms

      final Vector3[][] _norms
      Triangles' normals
  • Constructor Details

    • Md3Surface

      Md3Surface(int magic, String name, int flags, int numFrames, int numShaders, int numVerts, int numTriangles, int offsetTriangles, int offsetShaders, int offsetTexCoords, int offsetXyzNormals, int offsetEnd)