source:
orxonox.OLD/trunk/src/world_entities/movie_entity.h
@
8131
Last change on this file since 8131 was 7221, checked in by bensch, 19 years ago | |
---|---|
File size: 841 bytes |
Rev | Line | |
---|---|---|
[6488] | 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: | |
[6507] | 17 | MediaContainer* media_container; |
[6488] | 18 | |
19 | int counter; | |
20 | float timer; | |
21 | float fps; | |
22 | ||
[6508] | 23 | float axis; |
24 | float rotation; | |
25 | float height; | |
26 | float width; | |
27 | ||
[6731] | 28 | bool mediaLoaded; |
29 | ||
[6488] | 30 | public: |
[6489] | 31 | MovieEntity (const TiXmlElement* root = NULL); |
[6981] | 32 | virtual ~MovieEntity (); |
[6488] | 33 | |
34 | virtual void draw () const; | |
35 | virtual void tick (float time); | |
[6508] | 36 | |
[6532] | 37 | virtual void loadParams(const TiXmlElement* root); |
[6508] | 38 | |
[7221] | 39 | void loadMovie(const std::string& filename); |
[6508] | 40 | void setAxis(float axis); |
41 | void setRotation(float rotation); | |
42 | void setSize(float width, float height); | |
[7010] | 43 | void setFPS(float fps); |
[6488] | 44 | |
45 | }; | |
46 | ||
[6507] | 47 | #endif /* _MOVIE_ENTITY_H */ |
Note: See TracBrowser
for help on using the repository browser.