source:
orxonox.OLD/trunk/src/world_entities/effects/billboard.h
@
10362
Last change on this file since 10362 was 9869, checked in by bensch, 18 years ago | |
---|---|
File size: 631 bytes |
Rev | Line | |
---|---|---|
[7111] | 1 | /*! |
[8255] | 2 | * @file billboard.h |
[7113] | 3 | */ |
[7111] | 4 | |
[8255] | 5 | #ifndef _BILLBOARD_H |
6 | #define _BILLBOARD_H | |
[7111] | 7 | |
8 | #include "world_entity.h" | |
9 | ||
10 | class Material; | |
[8255] | 11 | class TiXmlElement; |
[7111] | 12 | |
[8255] | 13 | class Billboard : public WorldEntity |
[7111] | 14 | { |
[9869] | 15 | ObjectListDeclaration(Billboard); |
[7111] | 16 | public: |
[8255] | 17 | Billboard(const TiXmlElement* root = NULL); |
18 | virtual ~Billboard(); | |
[7111] | 19 | |
[8255] | 20 | void init(); |
21 | void loadParams(const TiXmlElement* root); | |
[7111] | 22 | |
[8255] | 23 | void setSize(float sizeX, float sizeY); |
24 | void setTexture(const std::string& textureFile); | |
25 | ||
26 | virtual void tick(float dt); | |
[7111] | 27 | virtual void draw() const; |
28 | ||
29 | private: | |
[8255] | 30 | Material* material; |
31 | float sizeX; | |
32 | float sizeY; | |
[7111] | 33 | }; |
34 | ||
[8255] | 35 | #endif /* _BILLBOARD_H */ |
Note: See TracBrowser
for help on using the repository browser.