Stellarium  0.90.0
List of all members | Public Member Functions | Public Attributes
StelOBJ::Vertex Struct Reference

A Vertex struct holds the vertex itself (position), corresponding texture coordinates, normals, tangents and bitangents It does not use Vec3f etc. More...

#include <StelOBJ.hpp>

Public Member Functions

bool operator== (const Vertex &b) const
 Checks if the 2 vertices correspond to the same data using memcmp. More...
 

Public Attributes

GLfloat position [3]
 The XYZ position. More...
 
GLfloat texCoord [2]
 The UV texture coordinate. More...
 
GLfloat normal [3]
 The vertex normal. More...
 
GLfloat tangent [4]
 The vertex tangent. More...
 
GLfloat bitangent [3]
 The vertex bitangent. More...
 

Detailed Description

A Vertex struct holds the vertex itself (position), corresponding texture coordinates, normals, tangents and bitangents It does not use Vec3f etc.

to be POD compliant (needed for offsetof)

Definition at line 48 of file StelOBJ.hpp.

Member Function Documentation

bool StelOBJ::Vertex::operator== ( const Vertex b) const
inline

Checks if the 2 vertices correspond to the same data using memcmp.

Definition at line 62 of file StelOBJ.hpp.

Member Data Documentation

GLfloat StelOBJ::Vertex::bitangent[3]

The vertex bitangent.

Definition at line 59 of file StelOBJ.hpp.

GLfloat StelOBJ::Vertex::normal[3]

The vertex normal.

Definition at line 55 of file StelOBJ.hpp.

GLfloat StelOBJ::Vertex::position[3]

The XYZ position.

Definition at line 51 of file StelOBJ.hpp.

GLfloat StelOBJ::Vertex::tangent[4]

The vertex tangent.

Definition at line 57 of file StelOBJ.hpp.

GLfloat StelOBJ::Vertex::texCoord[2]

The UV texture coordinate.

Definition at line 53 of file StelOBJ.hpp.


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