| Line |   | 
|---|
| 1 | /*! | 
|---|
| 2 |  * @file billboard.h | 
|---|
| 3 |  */ | 
|---|
| 4 |  | 
|---|
| 5 | #ifndef _BILLBOARD_H | 
|---|
| 6 | #define _BILLBOARD_H | 
|---|
| 7 |  | 
|---|
| 8 | #include "world_entity.h" | 
|---|
| 9 |  | 
|---|
| 10 | class Material; | 
|---|
| 11 | class TiXmlElement; | 
|---|
| 12 | class Color; | 
|---|
| 13 |  | 
|---|
| 14 | class Billboard : public WorldEntity | 
|---|
| 15 | { | 
|---|
| 16 |   ObjectListDeclaration(Billboard); | 
|---|
| 17 |   public: | 
|---|
| 18 |     Billboard(const TiXmlElement* root = NULL); | 
|---|
| 19 |     virtual ~Billboard(); | 
|---|
| 20 |  | 
|---|
| 21 |     void init(); | 
|---|
| 22 |     void loadParams(const TiXmlElement* root); | 
|---|
| 23 |  | 
|---|
| 24 |     void setSize(float sizeX, float sizeY); | 
|---|
| 25 |     void setTexture(const std::string& textureFile); | 
|---|
| 26 |     void colorTexture(const Color col); | 
|---|
| 27 |  | 
|---|
| 28 |     virtual void tick(float dt); | 
|---|
| 29 |     virtual void draw() const; | 
|---|
| 30 |  | 
|---|
| 31 |   private: | 
|---|
| 32 |     Material*        material; | 
|---|
| 33 |     Color*           texColor; | 
|---|
| 34 |     float sizeX; | 
|---|
| 35 |     float sizeY; | 
|---|
| 36 | }; | 
|---|
| 37 |  | 
|---|
| 38 | #endif /* _BILLBOARD_H */ | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.