UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
dMD2TriangleVertex_t Struct Reference

#include <qfiles.h>

Data Fields

byte v [3]
 
byte unused
 

Detailed Description

Definition at line 72 of file qfiles.h.

Field Documentation

byte dMD2TriangleVertex_t::unused

Definition at line 83 of file qfiles.h.

byte dMD2TriangleVertex_t::v[3]

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 73 of file qfiles.h.

Referenced by R_ModLoadAliasMD2MeshIndexed(), and R_ModLoadAliasMD2MeshUnindexed().


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