Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9917 in orxonox.OLD for branches/network/src/lib/graphics


Ignore:
Timestamp:
Nov 4, 2006, 12:01:24 AM (18 years ago)
Author:
patrick
Message:

branches/network: removed some warnings in the mds model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/graphics/importer/md2/md2Model.cc

    r9915 r9917  
    9292  rebuildInfo();
    9393
    94   //this->debug();
     94  // this->debug();
    9595}
    9696
     
    141141  this->data = MD2Data::Pointer(new MD2Data(modelFileName, skinFileName, scale));
    142142  this->rebuildInfo();
     143
     144  return true;
    143145}
    144146
     
    311313      glNormal3fv(anorms[this->data->pLightNormals[pCommands[2]]]);
    312314      glVertex3fv(this->verticesList[pCommands[2]]);
     315      printf("vertex: %f, %f, %f\n", this->verticesList[pCommands[2]][0], this->verticesList[pCommands[2]][1], this->verticesList[pCommands[2]][2]);
    313316    }
    314317    glEnd();
     
    323326{
    324327  //static sVec3D this->verticesList[MD2_MAX_VERTICES]; /* performance: created only once in a lifetime */
    325   int* pCommands = this->data->pGLCommands;
     328  //  int* pCommands = this->data->pGLCommands;
    326329  /* some face culling stuff */
    327330  //   glPushAttrib(GL_POLYGON_BIT);
     
    450453  this->loadModel(modelFileName);
    451454  this->loadSkin(skinFileName);
    452  
     455
    453456  PRINTF(0)("model %s, skin %s\n", modelFileName.c_str(), skinFileName.c_str());
    454457}
     
    570573  delete [] buffer;
    571574  fclose(pFile);
     575
     576  return true;
    572577}
    573578
     
    592597  this->material.setIllum(3);
    593598  this->material.setAmbient(1.0, 1.0, 1.0);
    594 }
     599
     600  return true;
     601}
Note: See TracChangeset for help on using the changeset viewer.