Changeset 7052 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- Feb 6, 2006, 2:21:46 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
r7031 r7052 88 88 Element2D::~Element2D () 89 89 { 90 this->debug();91 90 // remove the Element2D, delete it's children (if required). 92 91 std::list<Element2D*>::iterator tmp = this->children.begin(); … … 938 937 * @param level The n-th level of the Node we draw (this is internal and only for nice output) 939 938 */ 940 void Element2D::debug (unsigned int depth, unsigned int level) const939 void Element2D::debug2D (unsigned int depth, unsigned int level) const 941 940 { 942 941 for (unsigned int i = 0; i < level; i++) … … 963 962 { 964 963 if (depth == 0) 965 (*child)->debug (0, level + 1);964 (*child)->debug2D(0, level + 1); 966 965 else 967 (*child)->debug (depth - 1, level +1);966 (*child)->debug2D(depth - 1, level +1); 968 967 } 969 968 } -
trunk/src/lib/graphics/render2D/element_2d.h
r7031 r7052 208 208 void update2D (float dt); 209 209 210 void debug (unsigned int depth = 1, unsigned int level = 0) const;210 void debug2D (unsigned int depth = 1, unsigned int level = 0) const; 211 211 void debugDraw2D(unsigned int depth = 1, float size = 1.0, Vector color = Vector(1,0,0), unsigned int level = 0) const; 212 212
Note: See TracChangeset
for help on using the changeset viewer.