Last change
on this file since 6289 was
6289,
checked in by hdavid, 18 years ago
|
branches/avi_play: begin of the media_player implementation
|
File size:
949 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 | #include "media_container.h" |
---|
13 | |
---|
14 | /* include base_object.h since all classes are derived from this one */ |
---|
15 | #include "base_object.h" |
---|
16 | |
---|
17 | /* using namespace std is default, this needs to be here */ |
---|
18 | using namespace std; |
---|
19 | |
---|
20 | class MediaContainer; |
---|
21 | |
---|
22 | /* The state of the MoviePlayer */ |
---|
23 | typedef enum MP_STATUS { |
---|
24 | PLAY, |
---|
25 | PAUSE, |
---|
26 | STOP |
---|
27 | }; |
---|
28 | |
---|
29 | |
---|
30 | |
---|
31 | class MoviePlayer : public BaseObject |
---|
32 | { |
---|
33 | |
---|
34 | private: |
---|
35 | |
---|
36 | MediaContainer* media_container; |
---|
37 | |
---|
38 | public: |
---|
39 | |
---|
40 | MoviePlayer(const char* filename); |
---|
41 | MoviePlayer(); |
---|
42 | ~MoviePlayer(); |
---|
43 | |
---|
44 | void loadMovie(const char* filename); |
---|
45 | |
---|
46 | void start(unsigned int start_frame); |
---|
47 | void resume(); |
---|
48 | void pause(); |
---|
49 | void stop(); |
---|
50 | |
---|
51 | void tick(float time); |
---|
52 | const void draw(); |
---|
53 | |
---|
54 | void setSpeed(float speed); |
---|
55 | float getSpeed(); |
---|
56 | const MP_STATUS getStatus(); |
---|
57 | void printInformation(); |
---|
58 | |
---|
59 | }; |
---|
60 | |
---|
61 | |
---|
62 | |
---|
63 | #endif /* _MOVIE_PLAYER */ |
---|
Note: See
TracBrowser
for help on using the repository browser.