Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 27, 2005, 2:24:13 PM (18 years ago)
Author:
hdavid
Message:

branches\avi_play: MediaContainer returns a texture not a surface, it's faster. MoviePlayer can display the textures, playspeed not yet implemented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/avi_play/src/lib/graphics/importer/movie_player.cc

    r6290 r6317  
    5858  status = STOP;
    5959
    60   tex = new Texture();
     60  //tex = new Texture();
    6161  material = new Material;
    6262
     
    103103void MoviePlayer::tick(float time)
    104104{
    105   surface = media_container->getNextFrame();
    106 
    107   if(surface == NULL)
    108     texture = NULL;
    109   else
    110   {
    111     bool hasAlpha;
    112     SDL_Surface* newSurf = tex->prepareSurface(surface, hasAlpha);
    113     if (newSurf != NULL)
    114       texture = Texture::loadTexToGL(newSurf);
    115     else
    116       texture = NULL;
    117   }
     105  texture = media_container->getNextFrame();
    118106}
    119107
Note: See TracChangeset for help on using the changeset viewer.