gKit2 light
Loading...
Searching...
No Matches
MeshVertex Struct Reference

representation de l'indexation complete d'un sommet More...

Public Member Functions

 MeshVertex (const int m, const int p, const int t, const int n)
bool operator< (const MeshVertex &b) const

Public Attributes

int material
int position
int texcoord
int normal

Detailed Description

representation de l'indexation complete d'un sommet

Definition at line 26 of file mesh_buffer.cpp.

Constructor & Destructor Documentation

◆ MeshVertex() [1/2]

MeshVertex::MeshVertex ( )
inline

Definition at line 33 of file mesh_buffer.cpp.

33: material(-1), position(-1), texcoord(-1), normal(-1) {}

◆ MeshVertex() [2/2]

MeshVertex::MeshVertex ( const int m,
const int p,
const int t,
const int n )
inline

Definition at line 34 of file mesh_buffer.cpp.

34: material(m), position(p), texcoord(t), normal(n) {}

Member Function Documentation

◆ operator<()

bool MeshVertex::operator< ( const MeshVertex & b) const
inline

Definition at line 37 of file mesh_buffer.cpp.

38 {
39 if(material != b.material) return material < b.material;
40 if(position != b.position) return position < b.position;
41 if(texcoord != b.texcoord) return texcoord < b.texcoord;
42 if(normal != b.normal) return normal < b.normal;
43 return false;
44 }

Member Data Documentation

◆ material

int MeshVertex::material

Definition at line 28 of file mesh_buffer.cpp.

◆ position

int MeshVertex::position

Definition at line 29 of file mesh_buffer.cpp.

◆ texcoord

int MeshVertex::texcoord

Definition at line 30 of file mesh_buffer.cpp.

◆ normal

int MeshVertex::normal

Definition at line 31 of file mesh_buffer.cpp.


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