Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/avi_play/src/lib/graphics/importer/movie_player.h @ 6323

Last change on this file since 6323 was 6317, checked in by hdavid, 18 years ago

branches\avi_play: MediaContainer returns a texture not a surface, it's faster. MoviePlayer can display the textures, playspeed not yet implemented

File size: 1.0 KB
Line 
1/*!
2 * @file movie_player.h
3  *  Manages the media files
4
5*/
6
7#ifndef _MOVIE_PLAYER
8#define _MOVIE_PLAYER
9
10#include "glincl.h"
11//#include "sdlincl.h"
12
13#include "media_container.h"
14#include "light.h"
15#include "texture.h"
16#include "material.h"
17#include "primitive_model.h"
18
19/* include base_object.h since all classes are derived from this one */
20#include "base_object.h"
21
22/* The state of the MoviePlayer */
23typedef enum MP_STATUS {
24  PLAY,
25        PAUSE,
26        STOP
27};
28
29class MoviePlayer : public BaseObject
30{
31
32private:
33
34  MediaContainer* media_container;
35  Model* model;
36  Material* material;
37
38  GLuint texture;
39
40  MP_STATUS status;     
41  float speed; 
42
43public:
44
45  MoviePlayer(const char* filename);
46  MoviePlayer();
47  ~MoviePlayer();
48
49  void init();
50  void loadMovie(const char* filename);
51
52        void start(unsigned int start_frame);
53        void resume();
54        void pause();
55        void stop();
56
57        void tick(float time);
58        const void draw();
59
60        void setSpeed(float speed);
61        float getSpeed();
62        const MP_STATUS getStatus();
63  void printInformation();
64
65};
66
67
68
69#endif /* _MOVIE_PLAYER */
Note: See TracBrowser for help on using the repository browser.