Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3400 in orxonox.OLD for orxonox/trunk/src/importer/model.h


Ignore:
Timestamp:
Feb 7, 2005, 12:34:47 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: model: extended funtionality, now one can also use float values instead of char*

File:
1 edited

Legend:

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

    r3398 r3400  
    9292  float scaleFactor;    //!< The Factor with which the Model should be scaled. \todo maybe one wants to scale the Model after Initialisation
    9393
    94   bool initialize (void);
     94  bool initialize(void);
    9595  bool initGroup(Group* group);
    9696  bool initFace (Face* face);
     
    101101
    102102 public:
    103   bool addGroup (char* groupString);
    104   bool addVertex (char* vertexString);
    105   bool addFace (char* faceString);
    106   bool addVertexNormal (char* normalString);
    107   bool addVertexTexture (char* vTextureString);
    108   bool addUseMtl (char* mtlString);
     103  bool addGroup(char* groupString);
     104  bool addVertex(char* vertexString);
     105  bool addVertex(const float x, const float y, const float z);
     106  bool addFace(char* faceString);
     107  bool addFace(const float faceElemCount, ...);
     108  bool addVertexNormal(char* normalString);
     109  bool addVertexNormal(const float x, const float y, const float z);
     110  bool addVertexTexture(char* vTextureString);
     111  bool addVertexTexture(const float u, const float v);
     112  bool addUseMtl(char* mtlString);
    109113  void finalize(void);
    110114
    111115 protected:
    112   bool importToGL (void);
    113   bool addGLElement (FaceElement* elem);
     116  bool importToGL(void);
     117  bool addGLElement(FaceElement* elem);
    114118
    115   bool buildVertexNormals ();
     119  bool buildVertexNormals(void);
    116120
    117   void BoxModel (void);
     121  void cubeModel(void);
     122  void cylinderModel(void);
    118123};
    119124
Note: See TracChangeset for help on using the changeset viewer.