Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Pages
src
MeshLoader.h
1
#ifndef _MESHLOADER_H_
2
#define _MESHLOADER_H_
3
4
#include "Mesh.h"
5
#include <string>
6
#include <assimp/scene.h>
7
11
enum
Origin
12
{
13
Min,
14
Center,
15
Max,
16
Unchanged
17
};
18
23
struct
MeshLoadDescription
24
{
25
MeshLoadDescription
();
26
27
bool
loadNormals;
28
bool
loadTexCoords;
29
bool
loadColors;
30
bool
loadTextures;
31
bool
moveOrigin;
32
Origin originX, originY, originZ;
33
};
34
38
class
MeshLoader
39
{
40
public
:
44
static
void
loadCollada
(
const
std::string& path,
Mesh
* mesh,
45
bool
loadNormals=
false
,
bool
loadTexCoords=
false
,
bool
loadColors=
false
,
bool
loadTextures=
false
);
46
56
static
void
loadCollada
(
const
std::string& path,
Mesh
* mesh,
const
MeshLoadDescription
& descr);
57
58
private
:
59
static
void
printMaterial(
const
aiMaterial& material);
60
};
61
62
63
#endif
Generated on Mon Jun 10 2013 17:20:11 for Cutout Vis2012 by
1.8.4