Changeset 5378 in orxonox.OLD for trunk/src/lib/graphics/render2D
- Timestamp:
- Oct 14, 2005, 6:54:55 PM (19 years ago)
- Location:
- trunk/src/lib/graphics/render2D
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/render2D/element_2d.cc
r5377 r5378 123 123 this->toCoordinate = NULL; 124 124 this->toDirection = NULL; 125 this->setSize2D(1,1); 125 126 126 127 Render2D::getInstance()->registerElement2D(this); -
trunk/src/lib/graphics/render2D/element_2d.h
r5371 r5378 98 98 inline bool isActive() { return this->active; }; 99 99 100 101 inline void setSize2D(float x, float y) { this->sizeX = x, this->sizeY = y; }; 102 inline void setSizeX2D(float x) { this->sizeX = x; }; 103 inline void setSizeY2D(float y) { this->sizeY = y; }; 104 inline float getSizeX2D() const { return this->sizeX; }; 105 inline float getSizeY2D() const { return this->sizeY; }; 100 106 101 107 // LIKE PNODE … … 179 185 virtual void draw() const = 0; 180 186 181 protected: 187 private: 188 const PNode* bindNode; //!< a node over which to display this 2D-element 182 189 float sizeX; //!< The size of the rendered item in x-direction 183 190 float sizeY; //!< The size of the rendered Item in y-direction 184 185 private:186 const PNode* bindNode; //!< a node over which to display this 2D-element187 191 188 192 E2D_ALIGNMENT alignment; //!< How the Element is aligned around its Position
Note: See TracChangeset
for help on using the changeset viewer.