Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/blink/src/lib/graphics/render2D/image_plane.h @ 10262

Last change on this file since 10262 was 9869, checked in by bensch, 18 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 903 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  ObjectListDeclaration(ImagePlane);
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.