OpenClonk
StdMeshVertex Struct Reference

#include <StdMeshMath.h>

Public Member Functions

 StdMeshVertex ()
 

Public Attributes

float u {0}
 
float v {0}
 
float nx {0}
 
float ny {0}
 
float nz {0}
 
float x {0}
 
float y {0}
 
float z {0}
 
float bone_weight [MaxBoneWeightCount]
 
uint16_t bone_index [MaxBoneWeightCount]
 
char _padding [16]
 

Static Public Attributes

static const size_t MaxBoneWeightCount = 8
 

Detailed Description

Definition at line 35 of file StdMeshMath.h.

Constructor & Destructor Documentation

◆ StdMeshVertex()

StdMeshVertex::StdMeshVertex ( )
inline

Definition at line 49 of file StdMeshMath.h.

50  {
51  std::uninitialized_fill(std::begin(bone_weight), std::end(bone_weight), 0);
52  std::uninitialized_fill(std::begin(bone_index), std::end(bone_index), 0);
53  std::uninitialized_fill(std::begin(_padding), std::end(_padding), 0);
54  }
char _padding[16]
Definition: StdMeshMath.h:47
uint16_t bone_index[MaxBoneWeightCount]
Definition: StdMeshMath.h:45
float bone_weight[MaxBoneWeightCount]
Definition: StdMeshMath.h:44

References _padding, bone_index, and bone_weight.

Member Data Documentation

◆ _padding

char StdMeshVertex::_padding[16]

Definition at line 47 of file StdMeshMath.h.

Referenced by StdMeshVertex().

◆ bone_index

uint16_t StdMeshVertex::bone_index[MaxBoneWeightCount]

Definition at line 45 of file StdMeshMath.h.

Referenced by StdMeshLoader::LoadMeshBinary(), and StdMeshVertex().

◆ bone_weight

float StdMeshVertex::bone_weight[MaxBoneWeightCount]

Definition at line 44 of file StdMeshMath.h.

Referenced by StdMeshLoader::LoadMeshBinary(), and StdMeshVertex().

◆ MaxBoneWeightCount

const size_t StdMeshVertex::MaxBoneWeightCount = 8
static

Definition at line 37 of file StdMeshMath.h.

Referenced by StdMeshLoader::LoadMeshBinary().

◆ nx

float StdMeshVertex::nx {0}

Definition at line 41 of file StdMeshMath.h.

Referenced by operator*(), operator+=(), and OgreToClonk::TransformVertex().

◆ ny

float StdMeshVertex::ny {0}

Definition at line 41 of file StdMeshMath.h.

Referenced by operator*(), operator+=(), and OgreToClonk::TransformVertex().

◆ nz

float StdMeshVertex::nz {0}

Definition at line 41 of file StdMeshMath.h.

Referenced by operator*(), operator+=(), and OgreToClonk::TransformVertex().

◆ u

float StdMeshVertex::u {0}

Definition at line 40 of file StdMeshMath.h.

Referenced by operator*().

◆ v

float StdMeshVertex::v {0}

Definition at line 40 of file StdMeshMath.h.

Referenced by operator*().

◆ x

float StdMeshVertex::x {0}

◆ y

float StdMeshVertex::y {0}

◆ z

float StdMeshVertex::z {0}

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