Last change
on this file since 8033 was
7951,
checked in by hdavid, 19 years ago
|
branches/atmospheric_engine: work on the billboard
|
File size:
595 bytes
|
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 | |
---|
13 | class Billboard : public WorldEntity |
---|
14 | { |
---|
15 | public: |
---|
16 | Billboard(const TiXmlElement* root = NULL); |
---|
17 | virtual ~Billboard(); |
---|
18 | |
---|
19 | void init(); |
---|
20 | void loadParams(const TiXmlElement* root); |
---|
21 | |
---|
22 | void setSize(float sizeX, float sizeY); |
---|
23 | void setTexture(const std::string& textureFile); |
---|
24 | |
---|
25 | virtual void tick(float dt); |
---|
26 | virtual void draw() const; |
---|
27 | |
---|
28 | private: |
---|
29 | Material* material; |
---|
30 | float sizeX; |
---|
31 | float sizeY; |
---|
32 | }; |
---|
33 | |
---|
34 | #endif /* _BILLBOARD_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.