Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/graphics/render2D/billboard.h @ 7364

Last change on this file since 7364 was 7221, checked in by bensch, 19 years ago

orxonox/trunk: merged the std-branche back, it runs on windows and Linux

svn merge https://svn.orxonox.net/orxonox/branches/std . -r7202:HEAD

File size: 882 bytes
RevLine 
[6779]1/*!
2 * @file billboard.h
3 *  Definition of a billboard
4 */
5
[6781]6#ifndef _BILLBOARD_H
7#define _BILLBOARD_H
[6779]8
[6782]9
[6779]10#include "element_2d.h"
11
12#include "vector.h"
13
14
[6781]15
[6779]16class Model;
17class Material;
18class TiXmlElement;
19
20//! A class that enables the
[6781]21class Billboard :  public Element2D
22{
[6779]23
24  public:
25    Billboard(const TiXmlElement* root = NULL);
26    virtual ~Billboard();
27
28    void init();
29    void loadParams(const TiXmlElement* root);
30
31    void setSize(float sizeX, float sizeY);
[7221]32    void setTexture(const std::string& textureFile);
[6782]33    void attachTo(PNode* pnode);
[6779]34
35    virtual void tick(float dt);
36    virtual void draw() const;
37
[6781]38
[6779]39  private:
[6781]40    Material*        material;             //!< a material for the Billboard
[6779]41    float            rotationSpeed;        //!< Speed of the Rotation.
[6781]42
43    PNode*           source;               //!< the source attached to it
44
[6779]45};
46
[6781]47#endif /* _BILLBOARD_H */
Note: See TracBrowser for help on using the repository browser.