Changeset 7019 in orxonox.OLD for trunk/src/world_entities/elements/text_element.h
- Timestamp:
- Feb 3, 2006, 4:33:45 PM (19 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/elements/text_element.h
r7016 r7019 1 1 /*! 2 * @file image_entity.h3 * Definition of an ImageEntity2 * @file text_element.h 3 * Definition of an TextElement 4 4 */ 5 5 6 #ifndef _ IMAGE_ENTITY_H7 #define _ IMAGE_ENTITY_H6 #ifndef _TEXT_ELEMENT_H 7 #define _TEXT_ELEMENT_H 8 8 9 9 #include "p_node.h" 10 #include " element_2d.h"10 #include "text.h" 11 11 #include "event_listener.h" 12 12 … … 20 20 21 21 //! A class that enables the 22 class ImageEntity : public PNode, public Element2D{22 class TextElement : public Text { 23 23 24 24 public: 25 ImageEntity(const TiXmlElement* root = NULL);26 virtual ~ ImageEntity();25 TextElement(const TiXmlElement* root = NULL); 26 virtual ~TextElement(); 27 27 28 28 void init(); 29 29 virtual void loadParams(const TiXmlElement* root); 30 30 31 void setSize(float sizeX, float sizeY); 32 void setTexture(const char* textureFile); 33 /** @param rotationSpeed the speed at what the crosshair should rotate */ 34 void setRotationSpeed(float rotationSpeed) { this->rotationSpeed = rotationSpeed; }; 35 void toggleBillboarding(); 36 37 virtual void tick(float dt); 38 virtual void draw() const; 31 void setText(const char* text); 32 void setFont(const char* font); 39 33 40 34 private: 41 Material* material; //!< a material for the Aim. 42 float rotationSpeed; //!< Speed of the Rotation. 43 bool bBillboarding; //!< true if billboarding is on 35 44 36 }; 45 37 46 #endif /* _ IMAGE_ENTITY_H */38 #endif /* _TEXT_ELEMENT_H */
Note: See TracChangeset
for help on using the changeset viewer.