UFO: Alien Invasion
Loading...
Searching...
No Matches
dMD2TriangleVertex_t Struct Reference

#include <qfiles.h>

Collaboration diagram for dMD2TriangleVertex_t:
Collaboration graph

Data Fields

byte v [3]
byte unused

Detailed Description

Definition at line 72 of file qfiles.h.

Field Documentation

◆ unused

byte dMD2TriangleVertex_t::unused

Definition at line 83 of file qfiles.h.

◆ v

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.


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