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