Changeset 3398 in orxonox.OLD for orxonox/trunk/src/importer/model.h
- Timestamp:
- Feb 6, 2005, 11:02:45 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/importer/model.h
r3396 r3398 15 15 using namespace std; 16 16 17 17 enum PRIMITIVE {PLANE, CUBE, SPHERE, CYLINDER}; 18 18 19 19 //! Class that handles 3D-Models. it can also read them in and display them. … … 22 22 public: 23 23 Model(void); 24 Model(PRIMITIVE type); 25 Model(char* modelName); 24 26 virtual ~Model(void); 27 28 void setName(const char* name); 25 29 26 30 void draw(void) const; … … 30 34 31 35 protected: 32 char* name; //!< This is the name of the Model; 36 char* name; //!< This is the name of the Model. 37 bool finalized; //!< Sets the Object to be finalized. 38 33 39 //! This is the placeholder of one Vertex beloning to a Face. 34 40 struct FaceElement … … 94 100 bool cleanupFaceElement(FaceElement* faceElem); 95 101 102 public: 96 103 bool addGroup (char* groupString); 97 104 bool addVertex (char* vertexString); … … 100 107 bool addVertexTexture (char* vTextureString); 101 108 bool addUseMtl (char* mtlString); 109 void finalize(void); 102 110 111 protected: 103 112 bool importToGL (void); 104 113 bool addGLElement (FaceElement* elem);
Note: See TracChangeset
for help on using the changeset viewer.