Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6191 in orxonox.OLD for branches/christmas_branche/src/subprojects


Ignore:
Timestamp:
Dec 20, 2005, 3:24:14 PM (19 years ago)
Author:
patrick
Message:

christmas: the texture gets loaded now and is loadable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/christmas_branche/src/subprojects/importer/importer.cc

    r6184 r6191  
    4545      obj = new OBJModel (argv[1], atof(argv[2]));
    4646    else if( strstr(argv[1], ".md2") != NULL)
     47    {
    4748      obj = new MD2Model(argv[1], argv[2]);
     49      ((MD2Model*)obj)->tick(0.1f);
     50    }
    4851  }
    4952  else if (argc>=2)
     
    5154    if( strstr(argv[1], ".obj") != NULL)
    5255      obj = new OBJModel(argv[1]);
    53     else if( strstr(argv[1], ".md2") != NULL)
     56    else if( strstr(argv[1], ".md2") != NULL) {
    5457      obj = new MD2Model(argv[1], "fake_texture.bad");
     58      obj = new MD2Model(argv[1], argv[2]);
     59      ((MD2Model*)obj)->tick(0.1f);
     60    }
    5561  }
    5662  else
Note: See TracChangeset for help on using the changeset viewer.