Changeset 6317 in orxonox.OLD for branches/avi_play/src/lib/graphics/importer/movie_player.cc
- Timestamp:
- Dec 27, 2005, 2:24:13 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/lib/graphics/importer/movie_player.cc
r6290 r6317 58 58 status = STOP; 59 59 60 tex = new Texture();60 //tex = new Texture(); 61 61 material = new Material; 62 62 … … 103 103 void MoviePlayer::tick(float time) 104 104 { 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(); 118 106 } 119 107
Note: See TracChangeset
for help on using the changeset viewer.