Changeset 5215 in orxonox.OLD for trunk/src/lib/graphics/render2D
- Timestamp:
- Sep 22, 2005, 4:02:08 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
r5214 r5215 438 438 * use this to add a child to this node. 439 439 */ 440 void Element2D::addChild2D (Element2D* child, int parentingMod )440 void Element2D::addChild2D (Element2D* child, int parentingMode) 441 441 { 442 442 if( likely(child->parent != NULL)) … … 445 445 child->parent->children->remove(child); 446 446 } 447 child->parentMode = parentMode; 447 if (parentingMode != E2D_PARENT_NONE) 448 child->parentMode = parentingMode; 448 449 child->parent = this; 449 450 this->children->add(child); -
trunk/src/lib/graphics/render2D/element_2d.h
r5211 r5215 42 42 typedef enum 43 43 { 44 E2D_PARENT_NONE = 0, 44 45 E2D_PARENT_LOCAL_ROTATE = 1, //!< Rotates all the children around their centers. 45 46 E2D_PARENT_ROTATE_MOVEMENT = 2, //!< Moves all the children around the center of their parent, without the rotation around their own centers. … … 138 139 139 140 140 void addChild2D (Element2D* child, int parentingMode = E2D_ DEFAULT_PARENTING_MODE);141 void addChild2D (Element2D* child, int parentingMode = E2D_PARENT_NONE); 141 142 void addChild2D (const char* childName); 142 143 void removeChild2D (Element2D* child);
Note: See TracChangeset
for help on using the changeset viewer.