Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/new_class_id/src/world_entities/effects/billboard.h @ 9707

Last change on this file since 9707 was 9707, checked in by bensch, 18 years ago

some more WorldEntities adapted

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