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.cc

    r3801 r3894  
    323323   With it you should be able to import .obj-files with more than one Models inside.
    324324*/
    325 bool Model::addGroup (char* groupString)
     325bool Model::addGroup (const char* groupString)
    326326{
    327327  PRINTF(5)("Read Group: %s.\n", groupString);
     
    366366   
    367367*/
    368 bool Model::addVertex(const float x, const float y, const float z)
     368bool Model::addVertex(float x, float y, float z)
    369369{
    370370  PRINTF(5)("reading in a vertex: %f %f %f\n", x, y, z);
     
    441441   \param type 0: vertex only, 1: vertex and normal, 2: vertex and Texture, 3 vertex, normal and texture
    442442*/
    443 bool Model::addFace(const float faceElemCount, int type, ...)
     443bool Model::addFace(int faceElemCount, int type, ...)
    444444{
    445445   if (this->currentGroup->faceCount > 0)
     
    496496   If a vertexNormal line is found this function will inject it into the vertexNormal-Array
    497497*/
    498 bool Model::addVertexNormal(const float x, const float y, const float z)
     498bool Model::addVertexNormal(float x, float y, float z)
    499499{
    500500  PRINTF(3)("found vertex-Normal %f, %f, %f\n", x, y, z);
     
    527527   If a TextureCoordinate line is found this function will inject it into the TextureCoordinate-Array
    528528*/
    529 bool Model::addVertexTexture(const float u, const float v)
    530 {
    531   PRINTF(3)("found vertex-Texture %f, %f\n", u, v);
     529bool Model::addVertexTexture(float u, float v)
     530{
     531  PRINTF(5)("found vertex-Texture %f, %f\n", u, v);
    532532  this->vTexture->addEntry(u);
    533533  this->vTexture->addEntry(v);
     
    538538   \param matString the Material that will be set.
    539539*/
    540 bool Model::addUseMtl (char* matString)
     540bool Model::addUseMtl (const char* matString)
    541541{
    542542  /*
Note: See TracChangeset for help on using the changeset viewer.