Changeset 6350 in orxonox.OLD for branches/avi_play/src/lib
- Timestamp:
- Dec 30, 2005, 1:36:40 PM (19 years ago)
- Location:
- branches/avi_play/src/lib/graphics/importer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/lib/graphics/importer/media_container.cc
r6339 r6350 142 142 void MediaContainer::loadFrames() 143 143 { 144 // empty texture list 145 this->clearLists(); 146 144 147 // go to the begin of the video 145 148 av_seek_frame(format_context, video_stream, 0, AVSEEK_FLAG_BACKWARD); … … 152 155 GLuint MediaContainer::getNextFrame() 153 156 { 157 //if (glIsTexture(texture)) 158 // glDeleteTextures(1, &texture); 159 154 160 // get next frame 155 161 if(av_read_frame(format_context, &packet) >= 0) -
branches/avi_play/src/lib/graphics/importer/texture_sequence.cc
r6339 r6350 47 47 TextureSequence::~TextureSequence() 48 48 { 49 this->clearLists(); 50 } 51 52 void TextureSequence::clearLists() 53 { 49 54 // delete all images 50 55 while(!this->images.empty()) … … 54 59 } 55 60 56 this->setTexture(0);57 61 // delete all textures. 58 62 while(!this->textures.empty()) … … 63 67 } 64 68 } 65 66 69 67 70 /** -
branches/avi_play/src/lib/graphics/importer/texture_sequence.h
r6339 r6350 31 31 bool addFrame(GLuint texture); 32 32 33 void clearLists(); 34 33 35 virtual bool rebuild(); 34 36
Note: See TracChangeset
for help on using the changeset viewer.