Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 21, 2005, 3:07:36 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: prepare for VertexArrays

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/importer/model.h

    r3915 r3916  
    1414template<class T> class tList;
    1515
     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*/
     21typedef enum MODEL_TYPE {MODEL_DISPLAY_LIST,
     22                         MODEL_VERTEX_ARRAY};
    1623
    17 
    18 using namespace std;
    1924
    2025// definition of different modes for setting up Faces
     
    2328#define TEXCOORD 2     //!< If Faces are created WITH TextureCoordinate
    2429//! an enumerator for VERTEX_FORMAT
    25 enum VERTEX_FORMAT {VERTEX_ONLY = VERTEX,
     30typedef enum VERTEX_FORMAT {VERTEX_ONLY = VERTEX,
    2631                    VERTEX_NORMAL = NORMAL,
    2732                    VERTEX_TEXCOORD = TEXCOORD,
     
    7075
    7176  char* name;            //!< This is the name of the Model.
     77  MODEL_TYPE type;
    7278  bool finalized;        //!< Sets the Object to be finalized.
    7379
     
    8187  int groupCount;       //!< The Count of Groups.
    8288
     89  tList<Material>* materialList;
     90 
     91
    8392  bool initGroup(Group* group);
    8493  bool initFace (Face* face);
     
    8695  bool buildVertexNormals(void);
    8796
    88   bool importToGL(void);
     97  bool importToDisplayList(void);
    8998  bool addGLElement(FaceElement* elem);
    9099
     100  bool importToVertexArray(void);
     101
     102  bool deleteArrays(void);
    91103  bool cleanup(void);
    92104  bool cleanupGroup(Group* group);
     
    94106  bool cleanupFaceElement(FaceElement* faceElem);
    95107
    96   tList<Material>* materialList;
    97108
    98109 protected:
     
    104115
    105116 public:
    106   Model(const char* modelName = NULL);
     117  Model(const char* modelName = NULL, MODEL_TYPE type = MODEL_DISPLAY_LIST);
    107118  virtual ~Model(void);
    108119
Note: See TracChangeset for help on using the changeset viewer.