Changeset 7219 in orxonox.OLD for branches/std/src/lib/graphics/render2D
- Timestamp:
- Mar 12, 2006, 5:14:44 PM (19 years ago)
- Location:
- branches/std/src/lib/graphics/render2D
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/lib/graphics/render2D/element_2d.cc
r7216 r7219 726 726 void Element2D::setParentMode2D (const std::string& parentingMode) 727 727 { 728 this->setParentMode2D(Element2D:: charToParentingMode2D(parentingMode));728 this->setParentMode2D(Element2D::stringToParentingMode2D(parentingMode)); 729 729 } 730 730 … … 952 952 this->relCoordinate.y, 953 953 this->getAbsDir2D(), 954 Element2D::parentingModeTo Char2D(parentMode),954 Element2D::parentingModeToString2D(parentMode), 955 955 Element2D::layer2DToChar(this->layer)); 956 956 … … 1074 1074 * @return the converted string 1075 1075 */ 1076 const char* Element2D::parentingModeTo Char2D(int parentingMode)1076 const char* Element2D::parentingModeToString2D(int parentingMode) 1077 1077 { 1078 1078 if (parentingMode == E2D_PARENT_LOCAL_ROTATE) … … 1093 1093 * @return the int corresponding to the named parentingMode 1094 1094 */ 1095 E2D_PARENT_MODE Element2D:: charToParentingMode2D(const std::string& parentingMode)1095 E2D_PARENT_MODE Element2D::stringToParentingMode2D(const std::string& parentingMode) 1096 1096 { 1097 1097 if (parentingMode == "local-rotate") -
branches/std/src/lib/graphics/render2D/element_2d.h
r7216 r7219 212 212 213 213 // helper functions // 214 static const char* parentingModeTo Char2D(int parentingMode);215 static E2D_PARENT_MODE charToParentingMode2D(const std::string& parentingMode);214 static const char* parentingModeToString2D(int parentingMode); 215 static E2D_PARENT_MODE stringToParentingMode2D(const std::string& parentingMode); 216 216 217 217 static const char* layer2DToChar(E2D_LAYER layer);
Note: See TracChangeset
for help on using the changeset viewer.