gKit3
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
vertex Struct Reference

Public Member Functions

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

Public Attributes

int material
 
int position
 
int texcoord
 
int normal
 

Detailed Description

Definition at line 405 of file mesh_io.cpp.

Constructor & Destructor Documentation

◆ vertex() [1/2]

vertex::vertex ( )
inline

Definition at line 412 of file mesh_io.cpp.

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

◆ vertex() [2/2]

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

Definition at line 413 of file mesh_io.cpp.

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

Member Function Documentation

◆ operator<()

bool vertex::operator< ( const vertex b) const
inline

Definition at line 416 of file mesh_io.cpp.

417 {
418 if(material != b.material) return material < b.material;
419 if(position != b.position) return position < b.position;
420 if(texcoord != b.texcoord) return texcoord < b.texcoord;
421 if(normal != b.normal) return normal < b.normal;
422 return false;
423 }

Member Data Documentation

◆ material

int vertex::material

Definition at line 407 of file mesh_io.cpp.

◆ position

int vertex::position

Definition at line 408 of file mesh_io.cpp.

◆ texcoord

int vertex::texcoord

Definition at line 409 of file mesh_io.cpp.

◆ normal

int vertex::normal

Definition at line 410 of file mesh_io.cpp.


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