Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 19, 2005, 6:48:49 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: Material, and Model update, some const-issues

File:
1 edited

Legend:

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

    r3801 r3894  
    1919#define NORMAL 1       //!< If Faces are created WITH Normals (otherwise autocalculate)
    2020#define TEXCOORD 2     //!< If Faces are created WITH TextureCoordinate
     21//! an enumerator for VERTEX_FORMAT
     22enum VERTEX_FORMAT {VERTEX_ONLY = VERTEX,
     23                    VERTEX_NORMAL = NORMAL,
     24                    VERTEX_TEXCOORD = TEXCOORD,
     25                    VERTEXT_TEXTURE_NORMAL = NORMAL | TEXCOORD};
    2126
    2227//! Class that handles 3D-Models. it can also read them in and display them.
     
    96101
    97102 public:
    98   bool addGroup(char* groupString);
     103  bool addGroup(const char* groupString);
    99104  bool addVertex(char* vertexString);
    100   bool addVertex(const float x, const float y, const float z);
     105  bool addVertex(float x, float y, float z);
    101106  bool addFace(char* faceString);
    102   bool addFace(const float faceElemCount, int type, ...);
     107  bool addFace(int faceElemCount, int type, ...);
    103108  bool addVertexNormal(char* normalString);
    104   bool addVertexNormal(const float x, const float y, const float z);
     109  bool addVertexNormal(float x, float y, float z);
    105110  bool addVertexTexture(char* vTextureString);
    106   bool addVertexTexture(const float u, const float v);
    107   bool addUseMtl(char* mtlString);
     111  bool addVertexTexture(float u, float v);
     112  bool addUseMtl(const char* mtlString);
    108113  bool addUseMtl(Material* mtl);
    109114  void finalize(void);
Note: See TracChangeset for help on using the changeset viewer.