Changeset 4858 in orxonox.OLD for orxonox/trunk/src/lib/graphics/render2D/element_2d.h
- Timestamp:
- Jul 14, 2005, 12:43:39 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/render2D/element_2d.h
r4856 r4858 11 11 // FORWARD DECLARATION 12 12 class PNode; 13 class TiXmlElement; 13 14 14 15 //!< An enumerator defining the Depth of a 2D-element. … … 48 49 virtual ~Element2D(); 49 50 51 void init(); 52 void loadParams(const TiXmlElement* root); 53 50 54 /** @param xCoord the xCoordinate @param yCoord the y-Coordinate. These coordinates are Relative */ 51 55 inline void setPosition2D(int xCoord, int yCoord) { this->relPos2D[0] = xCoord; this->relPos2D[1] = yCoord; }; … … 54 58 /** @param alignment the new Alignment of the 2D-Element */ 55 59 inline void setAlignment(E2D_ALIGNMENT alignment) { this->alignment = alignment; }; 60 void setAlignment(const char* alignment); 56 61 /** @param layer the Layer this is drawn on */ 57 62 inline void setLayer(E2DLayer layer) { this->layer = layer; }; 63 void setLayer(const char* layer); 58 64 /** @param visible true if the Element should be visible false otherwise (will not be rendered) */ 59 65 inline void setVisibility(bool visible) { this->visible = visible; }; 60 66 /** @param bindNode the Node this 2D-element should follow. if NULL the Element will not follow anything */ 61 67 inline void setBindNode(const PNode* bindNode) { this->bindNode = bindNode; }; 68 void setBindNode(const char* bindNode); 62 69 63 70 /** @returns the visibility state */ 64 71 inline bool isVisible() { return this->visible; }; 65 72 66 void positioning();67 73 virtual void tick(float dt); 68 74 virtual void draw() const = NULL; 69 75 70 pr ivate:71 void init();76 protected: 77 void positioning(); 72 78 73 79 protected:
Note: See TracChangeset
for help on using the changeset viewer.