Changeset 6731 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Jan 25, 2006, 6:46:06 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/movie_loader.cc
r6600 r6731 20 20 #include "graphics_engine.h" 21 21 #include "load_param.h" 22 #include " resource_manager.h"22 #include "state.h" 23 23 24 24 … … 35 35 } 36 36 37 MovieLoader::~MovieLoader() 37 MovieLoader::~MovieLoader() 38 38 { 39 PRINTF(4)("Deleted MoviePlayer\n");39 delete this->movie_player; 40 40 } 41 41 … … 52 52 { 53 53 movie_player->loadMovie(filename); 54 55 PRINTF(0)("\nloaded Movie %s\n\n", filename);56 54 } 57 55 58 56 59 ErrorMessage MovieLoader::init() 60 { 61 62 } 57 ErrorMessage MovieLoader::init() {} 63 58 64 59 65 ErrorMessage MovieLoader::loadData() 66 { 67 68 } 60 ErrorMessage MovieLoader::loadData() {} 69 61 70 62 71 ErrorMessage MovieLoader::unloadData() 72 { 73 74 } 63 ErrorMessage MovieLoader::unloadData() {} 75 64 76 65 bool MovieLoader::start() 77 66 { 78 PRINTF(0)("\nMovieLoader INFO:\n"); 79 movie_player->printInformation(); 80 PRINTF(0)("\n"); 81 67 this->movie_player->start(0); 68 82 69 this->isRunning = true; 83 84 70 this->run(); 85 71 } … … 97 83 // first timestamp for t = 0 98 84 this->lastFrame = SDL_GetTicks (); 99 this->movie_player->start(0);100 85 101 86 while( this->isRunning) 102 87 { 103 104 88 this->tick(); 105 89 this->draw(); 106 107 90 } 108 91 } … … 121 104 122 105 glBegin(GL_QUADS); 123 glTexCoord2f( 1.0f, 0.0f); glVertex2f( 0, 0);124 glTexCoord2f( 1.0f, 1.0f); glVertex2f( 0, 100);125 glTexCoord2f( 0.0f, 1.0f); glVertex2f( 100, 100);126 glTexCoord2f( 0.0f, 0.0f); glVertex2f( 100, 0);106 glTexCoord2f(0.0f, 0.0f); glVertex2f( 0, 0); 107 glTexCoord2f(0.0f, 1.0f); glVertex2f( 0, State::getResY()); 108 glTexCoord2f(1.0f, 1.0f); glVertex2f( State::getResX(), State::getResY()); 109 glTexCoord2f(1.0f, 0.0f); glVertex2f( State::getResX(), 0); 127 110 glEnd(); 128 111 … … 139 122 140 123 // calculate time difference in milliseconds (Uint32) 141 this->dt = currentFrame - this->lastFrame; 124 this->dt = currentFrame - this->lastFrame; 142 125 // calculate time difference in seconds (float) 143 126 this->dts = (float)this->dt / 1000.0f;
Note: See TracChangeset
for help on using the changeset viewer.