Tucano  0.1
A library for rapid prototyping with modern OpenGL and GLSL
Tucano::MeshImporter Namespace Reference

Functions

static void loadObjFile (Mesh *mesh, string filename)
 Loads a mesh from an OBJ file. More...
 
static bool loadPlyFile (Mesh *mesh, string filename)
 Loads a mesh from an PLY file. More...
 
static int normal_cb (p_ply_argument argument)
 
static int color_cb (p_ply_argument argument)
 
static int vertex_cb (p_ply_argument argument)
 
static int face_cb (p_ply_argument argument)
 

Function Documentation

static int Tucano::MeshImporter::color_cb ( p_ply_argument  argument)
static
static int Tucano::MeshImporter::face_cb ( p_ply_argument  argument)
static
static void Tucano::MeshImporter::loadObjFile ( Mesh mesh,
string  filename 
)
static

Loads a mesh from an OBJ file.

Loads vertex coordinates and normals, texcoords and color when available.

Parameters
meshPointer to mesh instance to load file.
filenameGiven filename of the OBJ file.
static bool Tucano::MeshImporter::loadPlyFile ( Mesh mesh,
string  filename 
)
static

Loads a mesh from an PLY file.

Parameters
meshPointer to mesh instance to load file.
filenameGiven filename of the PLY file.
static int Tucano::MeshImporter::normal_cb ( p_ply_argument  argument)
static
static int Tucano::MeshImporter::vertex_cb ( p_ply_argument  argument)
static