Changeset 6611 in orxonox.OLD for branches/avi_play/src/lib/graphics/importer/movie_player.cc
- Timestamp:
- Jan 19, 2006, 12:35:05 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/lib/graphics/importer/movie_player.cc
r6600 r6611 62 62 av_free(frame); 63 63 64 avcodec_default_free_buffers(codec_context);65 66 64 // Close the codec 67 65 avcodec_close(codec_context); … … 80 78 frame_number = 0; 81 79 loading = false; 82 83 /*material = new Material;84 material->setDiffuseMap("maps/radialTransparency.png");85 86 model = new PrimitiveModel(PRIM_PLANE, 10.0);87 88 LightManager* lightMan = LightManager::getInstance();89 lightMan->setAmbientColor(.1,.1,.1);90 (new Light())->setAbsCoor(5.0, 10.0, 40.0);91 (new Light())->setAbsCoor(-10, -20, -100);92 */93 80 } 94 81 … … 344 331 status = PLAY; 345 332 timer = 0; 346 347 this->gotoFrame(start_frame);348 349 PRINTF(0)("start\n");350 333 } 351 334 } … … 354 337 { 355 338 if(status == PAUSE) 356 {357 339 status = PLAY; 358 PRINTF(0)("resume\n");359 }360 340 } 361 341 … … 363 343 { 364 344 if(status == PLAY) 365 {366 345 status = PAUSE; 367 PRINTF(0)("pause\n");368 }369 346 } 370 347 … … 372 349 { 373 350 status = STOP; 374 375 PRINTF(0)("stop\n");376 351 } 377 352 … … 389 364 this->skipFrame(actual_frame - frame_number - 1); 390 365 } 391 //PRINTF(0)("frame_number: %i\n", frame_number); 392 } 393 } 394 395 /*const void MoviePlayer::draw() 396 { 397 material->select(); 398 glBindTexture(GL_TEXTURE_2D, texture); 399 model->draw(); 400 401 LightManager::getInstance()->draw(); 402 }*/ 366 } 367 } 403 368 404 369 GLuint MoviePlayer::getTexture()
Note: See TracChangeset
for help on using the changeset viewer.