Changeset 3916 in orxonox.OLD for orxonox/trunk/src/lib/graphics/importer/model.h
- Timestamp:
- Apr 21, 2005, 3:07:36 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/importer/model.h
r3915 r3916 14 14 template<class T> class tList; 15 15 16 //! an enumerator fot the different Model Types. 17 /** 18 MODEL_DISPLAY_LIST means, that a DisplayList will be built out of the model. This model will be STATIC, meaning it cannot be changed after initialisation. 19 MODEL_VERTEX_ARRAY means, that a VertexArray will be built out of the model. This moel will be DYNAMIX, meaning that one can change the properties from outside of the model. 20 */ 21 typedef enum MODEL_TYPE {MODEL_DISPLAY_LIST, 22 MODEL_VERTEX_ARRAY}; 16 23 17 18 using namespace std;19 24 20 25 // definition of different modes for setting up Faces … … 23 28 #define TEXCOORD 2 //!< If Faces are created WITH TextureCoordinate 24 29 //! an enumerator for VERTEX_FORMAT 25 enum VERTEX_FORMAT {VERTEX_ONLY = VERTEX,30 typedef enum VERTEX_FORMAT {VERTEX_ONLY = VERTEX, 26 31 VERTEX_NORMAL = NORMAL, 27 32 VERTEX_TEXCOORD = TEXCOORD, … … 70 75 71 76 char* name; //!< This is the name of the Model. 77 MODEL_TYPE type; 72 78 bool finalized; //!< Sets the Object to be finalized. 73 79 … … 81 87 int groupCount; //!< The Count of Groups. 82 88 89 tList<Material>* materialList; 90 91 83 92 bool initGroup(Group* group); 84 93 bool initFace (Face* face); … … 86 95 bool buildVertexNormals(void); 87 96 88 bool importTo GL(void);97 bool importToDisplayList(void); 89 98 bool addGLElement(FaceElement* elem); 90 99 100 bool importToVertexArray(void); 101 102 bool deleteArrays(void); 91 103 bool cleanup(void); 92 104 bool cleanupGroup(Group* group); … … 94 106 bool cleanupFaceElement(FaceElement* faceElem); 95 107 96 tList<Material>* materialList;97 108 98 109 protected: … … 104 115 105 116 public: 106 Model(const char* modelName = NULL );117 Model(const char* modelName = NULL, MODEL_TYPE type = MODEL_DISPLAY_LIST); 107 118 virtual ~Model(void); 108 119
Note: See TracChangeset
for help on using the changeset viewer.