Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6057 in orxonox.OLD for branches/avi_play/src/subprojects/importer


Ignore:
Timestamp:
Dec 12, 2005, 1:07:57 AM (19 years ago)
Author:
hdavid
Message:

branches\avi_play: MediaContainer opens a videofile and prints some information

File:
1 edited

Legend:

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

    r6049 r6057  
    2828
    2929Model* obj;
     30MediaContainer* movie;
    3031
    3132void Framework::moduleInit(int argc, char** argv)
    3233{
    33   MediaContainer* test2;
    34        
    35   test2 = new MediaContainer(argv[1]); 
    3634
     35  movie = new MediaContainer(argv[1]);
    3736
     37        // print information about the media file
     38        movie->printMediaInformation();
     39
     40/*
    3841  ResourceManager::getInstance()->addImageDir("./");
    3942
     
    5760  lightMan->setAmbientColor(.1,.1,.1);
    5861  (new Light())->setAbsCoor(5.0, 10.0, 40.0);
    59   (new Light())->setAbsCoor(-10, -20, -100);
     62  (new Light())->setAbsCoor(-10, -20, -100);*/
    6063}
    6164
     
    7578void Framework::moduleTick(float dt)
    7679{
    77 
     80        if(movie->framesLeft())
     81                movie->getNextFrame();
    7882}
    7983
    8084void Framework::moduleDraw(void) const
    8185{
    82   obj->draw();
     86  //obj->draw();
    8387
    84   LightManager::getInstance()->draw();
     88  //LightManager::getInstance()->draw();
    8589}
    8690
Note: See TracChangeset for help on using the changeset viewer.