Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 19, 2005, 12:43:51 AM (18 years ago)
Author:
hdavid
Message:

branches/avi_play: frames are displayed correct and fast…took me only 3 days to find out that the only faut was wrong number in the SDL_CreateRGBSurfaceFrom call :-/

File:
1 edited

Legend:

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

    r6149 r6160  
    5252
    5353  seq = new TextureSequence();
    54   //for (int i = 1; i < argc; i++)
    55   //{
    56   //  seq->addFrame(argv[i]);
    57   //  printf("%s\n", argv[i]);
    58   //}
     54  while(seq->addFrame(movie->getNextFrame()) != NULL);
    5955
    60   // add one frame from the movie
    61   //seq->addFrame(movie->getNextFrame());
    62   //GLuint tex;
    63   while(seq->addFrame(movie->getNextFrame()) != NULL)
    64 
    65   test = new Texture(argv[1]);
     56  test = new Texture();
     57 
     58  // ???: Only works if i set as diffuse map an image
     59  // from the avifile created with importer (frameXX.ppm)
    6660  testMat->setDiffuseMap(argv[1]);
    6761
Note: See TracChangeset for help on using the changeset viewer.