the glcmd format: a positive integer starts a tristrip command, followed by that many vertex structures. a negative integer starts a trifan command, followed by -x vertexes a zero indicates the end of the command list. a vertex consists of a floating point s, a floating point t, and an integer vertex index. More...
#include <qfiles.h>
the glcmd format: a positive integer starts a tristrip command, followed by that many vertex structures. a negative integer starts a trifan command, followed by -x vertexes a zero indicates the end of the command list. a vertex consists of a floating point s, a floating point t, and an integer vertex index.
model file header structure - 68 bytes
Definition at line 111 of file qfiles.h.
byte size of each frame
Definition at line 121 of file qfiles.h.
Referenced by R_ModLoadAliasMD2MeshIndexed(), R_ModLoadAliasMD2MeshUnindexed(), and SV_ModLoadAliasMD2Model().
number of frames for this model
Definition at line 128 of file qfiles.h.
Referenced by R_ModLoadAliasMD2MeshIndexed(), R_ModLoadAliasMD2MeshUnindexed(), R_ModLoadAliasMD2Model(), and SV_ModLoadAliasMD2Model().
dwords in strip/fan command list
Definition at line 127 of file qfiles.h.
Referenced by MD2GLCmdsRemove().
Number of skins associated with this model
Definition at line 123 of file qfiles.h.
Referenced by MD2Check(), MD2HeaderCheck(), MD2SkinEdit(), MD2SkinFix(), R_ModLoadAliasMD2MeshIndexed(), and R_ModLoadAliasMD2MeshUnindexed().
number of triangles in each frame.
Definition at line 126 of file qfiles.h.
Referenced by MD2HeaderCheck(), R_ModLoadAliasMD2MeshIndexed(), and R_ModLoadAliasMD2MeshUnindexed().
number of vertices
Definition at line 124 of file qfiles.h.
Referenced by MD2HeaderCheck(), R_ModLoadAliasMD2MeshIndexed(), and R_ModLoadAliasMD2MeshUnindexed().
end of file
Definition at line 135 of file qfiles.h.
Referenced by MD2GLCmdsRemove(), MD2HeaderCheck(), and R_ModLoadAliasMD2Mesh().
offset for first frame
Definition at line 133 of file qfiles.h.
Referenced by MD2GLCmdsRemove(), R_ModLoadAliasMD2MeshIndexed(), R_ModLoadAliasMD2MeshUnindexed(), and SV_ModLoadAliasMD2Model().
offset to the gl command list
Definition at line 134 of file qfiles.h.
Referenced by MD2GLCmdsRemove().
each skin is a MD2_MAX_SKINNAME string
Definition at line 130 of file qfiles.h.
Referenced by MD2Check(), MD2GLCmdsRemove(), MD2SkinEdit(), MD2SkinFix(), R_ModLoadAliasMD2MeshIndexed(), and R_ModLoadAliasMD2MeshUnindexed().
byte offset from start for stverts
Definition at line 131 of file qfiles.h.
Referenced by MD2GLCmdsRemove(), R_ModLoadAliasMD2MeshIndexed(), and R_ModLoadAliasMD2MeshUnindexed().
offset for dtriangles
Definition at line 132 of file qfiles.h.
Referenced by MD2GLCmdsRemove(), R_ModLoadAliasMD2MeshIndexed(), and R_ModLoadAliasMD2MeshUnindexed().
height of the skin(s) in pixels
Definition at line 120 of file qfiles.h.
Referenced by R_ModLoadAliasMD2MeshIndexed(), and R_ModLoadAliasMD2MeshUnindexed().
width of the skin(s) in pixels
Definition at line 119 of file qfiles.h.
Referenced by R_ModLoadAliasMD2MeshIndexed(), and R_ModLoadAliasMD2MeshUnindexed().
version number of the file. Always 8
Definition at line 117 of file qfiles.h.
Referenced by MD2HeaderCheck(), and R_ModLoadAliasMD2Mesh().