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

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

Public Member Functions

 vertex (const int m, const int p, const int t, const int n)
bool operator< (const vertex &b) const
 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

representation de l'indexation complete d'un sommet

Definition at line 175 of file wavefront.cpp.

Constructor & Destructor Documentation

◆ vertex() [1/4]

vertex::vertex ( )
inline

Definition at line 182 of file wavefront.cpp.

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

◆ vertex() [2/4]

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

Definition at line 183 of file wavefront.cpp.

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

◆ vertex() [3/4]

vertex::vertex ( )
inline

Definition at line 314 of file wavefront_fast.cpp.

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

◆ vertex() [4/4]

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

Definition at line 315 of file wavefront_fast.cpp.

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

Member Function Documentation

◆ operator<() [1/2]

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

Definition at line 186 of file wavefront.cpp.

187 {
188 if(material != b.material) return material < b.material;
189 if(position != b.position) return position < b.position;
190 if(texcoord != b.texcoord) return texcoord < b.texcoord;
191 if(normal != b.normal) return normal < b.normal;
192 return false;
193 }

◆ operator<() [2/2]

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

Definition at line 318 of file wavefront_fast.cpp.

319 {
320 if(material != b.material) return material < b.material;
321 if(position != b.position) return position < b.position;
322 if(texcoord != b.texcoord) return texcoord < b.texcoord;
323 if(normal != b.normal) return normal < b.normal;
324 return false;
325 }

Member Data Documentation

◆ material

int vertex::material

Definition at line 177 of file wavefront.cpp.

◆ position

int vertex::position

Definition at line 178 of file wavefront.cpp.

◆ texcoord

int vertex::texcoord

Definition at line 179 of file wavefront.cpp.

◆ normal

int vertex::normal

Definition at line 180 of file wavefront.cpp.


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