Changeset 6731 in orxonox.OLD for trunk/src/lib/graphics/importer/movie_player.h
- Timestamp:
- Jan 25, 2006, 6:46:06 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/movie_player.h
r6607 r6731 17 17 18 18 #include "glincl.h" 19 20 //#include "light.h"21 19 #include "texture.h" 22 //#include "material.h"23 //#include "primitive_model.h"24 20 25 21 // include base_object.h since all classes are derived from this one … … 29 25 typedef enum MP_STATUS { 30 26 PLAY, 31 32 27 PAUSE, 28 STOP 33 29 }; 34 30 … … 37 33 38 34 private: 39 40 //Model* model;41 //Material* material;42 35 43 36 AVFormatContext* format_context; … … 61 54 float fps; 62 55 int duration; 63 bool loading;56 bool mediaLoaded; 64 57 65 58 public: 66 59 67 MoviePlayer(const char* filename); 68 MoviePlayer(); 60 MoviePlayer(const char* filename = NULL); 69 61 ~MoviePlayer(); 70 62 71 63 bool loadMovie(const char* filename); 72 64 73 74 75 76 65 void start(float start_time); 66 void resume(); 67 void pause(); 68 void stop(); 77 69 78 void tick(float dt); 79 //const void draw(); 80 GLuint getTexture(); 70 void tick(float dt); 71 GLuint getTexture(); 81 72 82 83 84 73 void setFPS(float fps); 74 float getFPS(); 75 const MP_STATUS getStatus(); 85 76 void printInformation(); 86 77 87 78 private: 88 79 89 void init();90 80 void getNextFrame(); 91 81 void skipFrame(int frames); 92 82 bool gotoFrame(int frames); 93 83 84 void unloadMedia(); 85 94 86 }; 95 87 96 97 98 88 #endif // _MOVIE_PLAYER
Note: See TracChangeset
for help on using the changeset viewer.