resonance 1.0.1
Loading...
Searching...
No Matches
Rnd::MeshVert Struct Reference

One vertex of a Rnd::Mesh. More...

#include <meshvert.h>

Collaboration diagram for Rnd::MeshVert:

Public Attributes

Vector3 mPoint
Vector3 mNorm
Color mColor
Vector2 mTex1
Vector2 mTex2

Detailed Description

One vertex of a Rnd::Mesh.

The structure is not polymorphic and emits no RTTI descriptor. Its member names come from the labels its text dump writes ("\n\tp:", "\n\tn:", "\n\tc:", "\n\tt1:", and " t2:") and from the Rnd::MeshAnim dump labels for the three animated channels ("vertPointsKeys", "vertTexsKeys", and "vertColorsKeys"). A vertex is 0x40 bytes, and the two padded vectors at the front make the whole record four quadwords for the vector unit.

Serialisation writes fourteen floats per vertex in member order, the three components of each padded vector and both components of each texture coordinate, so the padding words never reach a file.

Member Data Documentation

◆ mPoint

Vector3 Rnd::MeshVert::mPoint

◆ mNorm

Vector3 Rnd::MeshVert::mNorm

◆ mColor

Color Rnd::MeshVert::mColor

◆ mTex1

Vector2 Rnd::MeshVert::mTex1

◆ mTex2

Vector2 Rnd::MeshVert::mTex2

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