Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

branches/avi_file: created movie_player files

File size: 842 bytes
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 base_object.h since all classes are derived from this one */
14#include "base_object.h"
15
16/* using namespace std is default, this needs to be here */
17using namespace std;
18
19class MoviePlayer : public BaseObject
20{
21
22private:
23
24        char* filename;
25        unsigned int width;
26        unsigned int height;
27
28        unsigned int frame_rate;
29        unsigned int current_frame;
30        float time_since_last_frame;
31        float speed;
32       
33        SDL_Surface* screen;
34
35public:
36
37  MoviePlayer(const char* filename);
38  ~MoviePlayer();
39
40        void start(unsigned int start_frame);
41        void resume();
42        void pause();
43        void stop();
44
45        void tick(float time);
46        const void draw();
47
48        void setSpeed(float speed);
49        float getSpeed();
50
51};
52
53
54
55#endif /* _MOVIE_PLAYER */
Note: See TracBrowser for help on using the repository browser.