Changeset 6600 in orxonox.OLD for trunk/src/lib/graphics/importer/movie_player.h
- Timestamp:
- Jan 18, 2006, 5:25:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/movie_player.h
r6532 r6600 18 18 #include "glincl.h" 19 19 20 #include "light.h"20 //#include "light.h" 21 21 #include "texture.h" 22 #include "material.h"23 #include "primitive_model.h"22 //#include "material.h" 23 //#include "primitive_model.h" 24 24 25 25 // include base_object.h since all classes are derived from this one … … 29 29 typedef enum MP_STATUS { 30 30 PLAY, 31 32 31 PAUSE, 32 STOP 33 33 }; 34 34 … … 38 38 private: 39 39 40 Model* model;41 Material* material;40 //Model* model; 41 //Material* material; 42 42 43 43 AVFormatContext* format_context; … … 54 54 int video_stream; 55 55 56 MP_STATUS status; 56 MP_STATUS status; 57 57 float timer; 58 58 int start_frame; … … 61 61 float fps; 62 62 int duration; 63 bool loading; 63 bool loading; 64 64 65 65 public: … … 71 71 bool loadMovie(const char* filename); 72 72 73 74 75 76 73 void start(float start_time); 74 void resume(); 75 void pause(); 76 void stop(); 77 77 78 void tick(float dt); 79 const void draw(); 78 void tick(float dt); 79 //const void draw(); 80 GLuint getTexture(); 80 81 81 82 83 82 void setFPS(float fps); 83 float getFPS(); 84 const MP_STATUS getStatus(); 84 85 void printInformation(); 85 86 86 87 private: 87 88 88 89 void init(); 89 90 void getNextFrame();
Note: See TracChangeset
for help on using the changeset viewer.