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

    r3915 r3916  
    3232   \param scaling The factor that the model will be scaled with.
    3333*/
    34 OBJModel::OBJModel(char* fileName, float scaling)
     34OBJModel::OBJModel(const char* fileName, float scaling) : Model(fileName)
    3535{
    3636  this->initializeOBJ();
     
    7272   \param fileName The file to import
    7373*/
    74 bool OBJModel::importFile (char* fileName)
     74bool OBJModel::importFile (const char* fileName)
    7575{
    7676  PRINTF(4)("preparing to read in file: %s\n", fileName);
     
    8484  char pathSplitter='/';
    8585#endif /* __WIN32__ */
    86   char* tmpName = fileName;
     86  char* tmpName;
     87  strcpy(tmpName, fileName);
    8788  if (tmpName[0] == pathSplitter)
    8889    tmpName++;
     
    191192
    192193*/
    193 bool OBJModel::readMtlLib (char* mtlFile)
     194bool OBJModel::readMtlLib (const char* mtlFile)
    194195{
    195196  this->mtlFileName = new char [strlen(mtlFile)+1];
Note: See TracChangeset for help on using the changeset viewer.