dMD2TriangleVertex_t Struct Reference

#include <qfiles.h>

Data Fields

byte v [3]
byte unused

Detailed Description

Definition at line 74 of file qfiles.h.


Field Documentation

Definition at line 85 of file qfiles.h.

scaled byte to fit in frame mins/maxs The three bytes represent the x, y, and z coordinates of this vertex. This is not the "real" vertex coordinate. This is a scaled version of the coordinate, scaled so that each of the three numbers fit within one byte. To scale the vertex back to the "real" coordinate, you need to first multiply each of the bytes by their respective float scale in the dMD2Frame_t structure, and then add the respective float translation, also in the dMD2Frame_t structure. This will give you the vertex coordinate relative to the model's origin, which is at the origin, (0, 0, 0)

Definition at line 75 of file qfiles.h.

Referenced by R_ModLoadAliasMD2MeshIndexed(), and R_ModLoadAliasMD2MeshUnindexed().


The documentation for this struct was generated from the following file:

Generated by  doxygen 1.6.2