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










