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 |
---|
17 | class 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.