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