Last change
on this file since 6555 was
6545,
checked in by hdavid, 19 years ago
|
branches/avi_play: removed material
|
File size:
775 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file movie_entity.h |
---|
3 | * Definition of a Movie Screen |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _MOVIE_ENTITY_H |
---|
7 | #define _MOVIE_ENTITY_H |
---|
8 | |
---|
9 | #include "world_entity.h" |
---|
10 | |
---|
11 | |
---|
12 | class MediaContainer; |
---|
13 | |
---|
14 | class MovieEntity : public WorldEntity |
---|
15 | { |
---|
16 | private: |
---|
17 | MediaContainer* media_container; |
---|
18 | |
---|
19 | int counter; |
---|
20 | float timer; |
---|
21 | float fps; |
---|
22 | |
---|
23 | float axis; |
---|
24 | float rotation; |
---|
25 | float height; |
---|
26 | float width; |
---|
27 | |
---|
28 | public: |
---|
29 | MovieEntity (const TiXmlElement* root = NULL); |
---|
30 | ~MovieEntity (); |
---|
31 | |
---|
32 | virtual void draw () const; |
---|
33 | virtual void tick (float time); |
---|
34 | |
---|
35 | virtual void loadParams(const TiXmlElement* root); |
---|
36 | |
---|
37 | void loadMovie(const char* filename); |
---|
38 | void setAxis(float axis); |
---|
39 | void setRotation(float rotation); |
---|
40 | void setSize(float width, float height); |
---|
41 | |
---|
42 | }; |
---|
43 | |
---|
44 | #endif /* _MOVIE_ENTITY_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.