|
|
@ -15,7 +15,7 @@ class Meshpoint {
|
|
|
|
Meshpoint();
|
|
|
|
Meshpoint();
|
|
|
|
Meshpoint(Punkt3D v, Punkt2D vt);
|
|
|
|
Meshpoint(Punkt3D v, Punkt2D vt);
|
|
|
|
void set(Punkt3D v, Punkt2D vt);
|
|
|
|
void set(Punkt3D v, Punkt2D vt);
|
|
|
|
void use();
|
|
|
|
void use() const;
|
|
|
|
|
|
|
|
|
|
|
|
Punkt3D vertex;
|
|
|
|
Punkt3D vertex;
|
|
|
|
Punkt2D texcoord;
|
|
|
|
Punkt2D texcoord;
|
|
|
@ -26,7 +26,7 @@ class Material {
|
|
|
|
Material();
|
|
|
|
Material();
|
|
|
|
Material(std::string _name, Color _a, Color _d, Color _s);
|
|
|
|
Material(std::string _name, Color _a, Color _d, Color _s);
|
|
|
|
void set(std::string _name, Color _a, Color _d, Color _s);
|
|
|
|
void set(std::string _name, Color _a, Color _d, Color _s);
|
|
|
|
void use();
|
|
|
|
void use() const;
|
|
|
|
|
|
|
|
|
|
|
|
std::string name;
|
|
|
|
std::string name;
|
|
|
|
Color ambient, diffuse, specular;
|
|
|
|
Color ambient, diffuse, specular;
|
|
|
@ -35,7 +35,7 @@ class Material {
|
|
|
|
class Polygonpoint {
|
|
|
|
class Polygonpoint {
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
Polygonpoint();
|
|
|
|
Polygonpoint();
|
|
|
|
void use();
|
|
|
|
void use() const;
|
|
|
|
Punkt3D *point;
|
|
|
|
Punkt3D *point;
|
|
|
|
Punkt2D *tex;
|
|
|
|
Punkt2D *tex;
|
|
|
|
Punkt3D *normal;
|
|
|
|
Punkt3D *normal;
|
|
|
@ -46,7 +46,7 @@ class Meshpolygon {
|
|
|
|
Meshpolygon();
|
|
|
|
Meshpolygon();
|
|
|
|
Meshpolygon(Meshpoint *a, Meshpoint *b, Meshpoint *c);
|
|
|
|
Meshpolygon(Meshpoint *a, Meshpoint *b, Meshpoint *c);
|
|
|
|
void set(Meshpoint *a, Meshpoint *b, Meshpoint *c);
|
|
|
|
void set(Meshpoint *a, Meshpoint *b, Meshpoint *c);
|
|
|
|
void render(GLenum mode=GL_TRIANGLES);
|
|
|
|
void render(GLenum mode=GL_TRIANGLES) const;
|
|
|
|
|
|
|
|
|
|
|
|
Polygonpoint m1, m2, m3;
|
|
|
|
Polygonpoint m1, m2, m3;
|
|
|
|
Meshpoint *a, *b, *c;
|
|
|
|
Meshpoint *a, *b, *c;
|
|
|
@ -80,14 +80,15 @@ class Model {
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
Model();
|
|
|
|
Model();
|
|
|
|
~Model();
|
|
|
|
~Model();
|
|
|
|
bool isLoaded();
|
|
|
|
bool isLoaded() const;
|
|
|
|
void unload();
|
|
|
|
void unload();
|
|
|
|
void render();
|
|
|
|
void render() const;
|
|
|
|
|
|
|
|
|
|
|
|
Quader getBoundingBox() const { return boundingbox; }
|
|
|
|
Quader getBoundingBox() const { return boundingbox; }
|
|
|
|
float getBoundingRad() const { return boundingrad; }
|
|
|
|
float getBoundingRad() const { return boundingrad; }
|
|
|
|
|
|
|
|
|
|
|
|
const Punkt3D* getMeshData(unsigned int *meshanz) const;
|
|
|
|
const Punkt3D* getMeshData(unsigned int *meshanz) const;
|
|
|
|
|
|
|
|
const Meshpolygon* getPolygonData(unsigned int *polyanz) const;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace segl
|
|
|
|
} // namespace segl
|
|
|
|