Last change
on this file since 6776 was
6600,
checked in by bensch, 19 years ago
|
TRUNK: merged the avi_play branche again
|
File size:
988 bytes
|
Rev | Line | |
---|
[6555] | 1 | /*! |
---|
| 2 | * @file movie_loader.h |
---|
| 3 | * loads a movie |
---|
| 4 | */ |
---|
| 5 | |
---|
| 6 | #ifndef _MOVIE_LOADER_H |
---|
| 7 | #define _MOVIE_LOADER_H |
---|
| 8 | |
---|
| 9 | |
---|
| 10 | #include "story_entity.h" |
---|
| 11 | |
---|
[6570] | 12 | class MoviePlayer; |
---|
[6555] | 13 | |
---|
| 14 | class MovieLoader : public StoryEntity |
---|
| 15 | { |
---|
[6576] | 16 | private: |
---|
| 17 | MoviePlayer* movie_player; |
---|
[6555] | 18 | |
---|
[6576] | 19 | Uint32 lastFrame; |
---|
| 20 | Uint32 currentFrame; |
---|
| 21 | Uint32 dt; // time needed to calculate this frame (in milliSeconds) |
---|
| 22 | float dts; |
---|
| 23 | |
---|
[6555] | 24 | public: |
---|
[6576] | 25 | MovieLoader(const TiXmlElement* root); |
---|
[6555] | 26 | virtual ~MovieLoader(); |
---|
| 27 | |
---|
| 28 | virtual void loadParams(const TiXmlElement* root); |
---|
| 29 | |
---|
| 30 | /* functions from story-entity */ |
---|
| 31 | virtual ErrorMessage init(); |
---|
| 32 | virtual ErrorMessage loadData(); |
---|
| 33 | virtual ErrorMessage unloadData(); |
---|
| 34 | |
---|
| 35 | virtual bool start(); |
---|
| 36 | virtual bool stop(); |
---|
| 37 | virtual bool pause(); |
---|
| 38 | virtual bool resume(); |
---|
| 39 | virtual void run(); |
---|
[6557] | 40 | |
---|
| 41 | private: |
---|
[6576] | 42 | void loadMovie(const char* filename); |
---|
[6557] | 43 | void tick(); |
---|
[6598] | 44 | void draw() const; |
---|
[6567] | 45 | |
---|
[6555] | 46 | }; |
---|
| 47 | |
---|
| 48 | #endif /* _MOVIE_LOADER_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.