Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 14, 2005, 9:58:58 AM (19 years ago)
Author:
chris
Message:

orxonox/branches/levelloader: First incarnation of a debugworld loaded from a XML-File in place, compilability in place, all necessary basic loading constuctors in place. Unfortunately the code still generates interferences with the old hardcoded debugworld resulting in SegFault crash.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/levelloader/src/lib/graphics/importer/objModel.cc

    r3499 r3542  
    2424   \param fileName file to parse and load (must be a .obj file)
    2525*/
    26 OBJModel::OBJModel(char* fileName)
     26OBJModel::OBJModel(const char* fileName)
    2727{
    2828  this->initializeOBJ();
     
    4040   \param scaling The factor that the model will be scaled with.
    4141*/
    42 OBJModel::OBJModel(char* fileName, float scaling)
     42OBJModel::OBJModel(const char* fileName, float scaling)
    4343{
    4444  this->initializeOBJ();
     
    8484   \param fileName The file to import
    8585*/
    86 bool OBJModel::importFile (char* fileName)
     86bool OBJModel::importFile (const char* fileName)
    8787{
    8888  PRINTF(3)("preparing to read in file: %s\n", fileName);
     
    9696  char pathSplitter='/';
    9797#endif /* __WIN32__ */
    98   char* tmpName = fileName;
     98  const char* tmpName = fileName;
    9999  if (tmpName[0] == pathSplitter)
    100100    tmpName++;
    101   char* name = tmpName;
     101  const char* name = tmpName;
    102102  while (( tmpName = strchr (tmpName+1, pathSplitter)))
    103103    {
     
    212212
    213213*/
    214 bool OBJModel::readMtlLib (char* mtlFile)
     214bool OBJModel::readMtlLib (const char* mtlFile)
    215215{
    216216  this->mtlFileName = new char [strlen(mtlFile)+1];
Note: See TracChangeset for help on using the changeset viewer.