12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- /*!
- * \file include/StaticMesh.h
- * \brief Static Model Meshes
- *
- * \author xythobuz
- */
-
- #ifndef _STATIC_MODEL_H_
- #define _STATIC_MODEL_H_
-
- #include <vector>
-
- class TexturedTriangle {
- public:
- TexturedTriangle(int i[3], float s[6], int tex, unsigned short trans);
- void display(float* vertices, float* colors, float* normals);
-
- private:
- int index[3];
- float st[6];
- int texture;
- unsigned short transparency;
- };
-
- class StaticMesh {
- public:
- StaticMesh(int id, int mesh);
- ~StaticMesh();
- void display();
- float getRadius();
-
- private:
- bool dontshow;
- float center[3];
- float radius;
-
- unsigned int vertexCount;
- unsigned int colorCount;
- unsigned int normalCount;
-
- float* vertices;
- float* colors;
- float* normals;
-
- std::vector<TexturedTriangle*> triangles;
-
- int id;
- int mesh;
- };
-
- #endif
|