Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/graphics/render2D/image_plane.h @ 7826

Last change on this file since 7826 was 7810, checked in by bensch, 19 years ago

orxonox/trunk: merged the Weather effects back here

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