source:
orxonox.OLD/trunk/src/world_entities/effects/billboard.h
@
8493
Last change on this file since 8493 was 8255, checked in by bensch, 18 years ago | |
---|---|
File size: 595 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 | { |
15 | public: | |
[8255] | 16 | Billboard(const TiXmlElement* root = NULL); |
17 | virtual ~Billboard(); | |
[7111] | 18 | |
[8255] | 19 | void init(); |
20 | void loadParams(const TiXmlElement* root); | |
[7111] | 21 | |
[8255] | 22 | void setSize(float sizeX, float sizeY); |
23 | void setTexture(const std::string& textureFile); | |
24 | ||
25 | virtual void tick(float dt); | |
[7111] | 26 | virtual void draw() const; |
27 | ||
28 | private: | |
[8255] | 29 | Material* material; |
30 | float sizeX; | |
31 | float sizeY; | |
[7111] | 32 | }; |
33 | ||
[8255] | 34 | #endif /* _BILLBOARD_H */ |
Note: See TracBrowser
for help on using the repository browser.