Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/atmospheric_engine/src/lib/graphics/render2D/image_plane.h @ 8474

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

compiles

File size: 867 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#include "material.h"
14
15
16//! A class that enables the
17class ImagePlane :  public Element2D
18{
19
20  public:
21    ImagePlane(const TiXmlElement* root = NULL);
22    virtual ~ImagePlane();
23
24    void init();
25    void loadParams(const TiXmlElement* root);
26
27    void setSize(float sizeX, float sizeY);
28    void setTexture(const std::string& textureFile);
29    void attachTo(PNode* pnode);
30
31    virtual void tick(float dt);
32    virtual void draw() const;
33
34
35  private:
36    Material         material;             //!< a material for the ImagePlane
37    float            rotationSpeed;        //!< Speed of the Rotation.
38
39    PNode*           source;               //!< the source attached to it
40
41};
42
43#endif /* _IMAGE_PLANE_H */
Note: See TracBrowser for help on using the repository browser.