Changeset 6130 in orxonox.OLD for branches/objectmanager/src/lib
- Timestamp:
- Dec 16, 2005, 4:06:38 PM (19 years ago)
- Location:
- branches/objectmanager/src/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/objectmanager/src/lib/graphics/render2D/element_2d.cc
r5944 r6130 18 18 #include "element_2d.h" 19 19 #include "render_2d.h" 20 21 #include <algorithm> 20 22 21 23 #include "p_node.h" … … 82 84 if (this->parent != NULL) 83 85 { 84 this->parent-> children.remove(this);86 this->parent->eraseChild(this); 85 87 this->parent = NULL; 86 88 } … … 512 514 { 513 515 PRINTF(5)("Element2D::addChild() - reparenting node: removing it and adding it again\n"); 514 child->parent-> children.remove(child);516 child->parent->eraseChild(child); 515 517 } 516 518 child->parent = this; … … 581 583 if (this->parent != NULL) 582 584 { 583 this->parent-> children.remove(this);585 this->parent->eraseChild(this); 584 586 this->parent = NULL; 585 587 } … … 655 657 if (parentNode != NULL) 656 658 this->setParentSoft2D(parentNode, bias); 659 } 660 661 /** @param child the child to be erased from this Nodes List */ 662 void Element2D::eraseChild(Element2D* child) 663 { 664 std::list<Element2D*>::iterator childIT = std::find(this->children.begin(), this->children.end(), child); 665 this->children.erase(childIT); 657 666 } 658 667 … … 733 742 else if (unlikely(this->bindNode != NULL)) 734 743 { 735 GLdouble projectPos[3] ;744 GLdouble projectPos[3] = {0, 0, 0}; 736 745 gluProject(this->bindNode->getAbsCoor().x, 737 746 this->bindNode->getAbsCoor().y, -
branches/objectmanager/src/lib/graphics/render2D/element_2d.h
r5775 r6130 195 195 196 196 private: 197 void eraseChild(Element2D* child); 197 198 /** tells the child that the parent's Coordinate has changed */ 198 199 inline void parentCoorChanged () { this->bRelCoorChanged = true; } -
branches/objectmanager/src/lib/sound/sound_engine.cc
r6076 r6130 141 141 if (!this->ALSources.empty()) 142 142 { 143 144 143 source = this->ALSources.top(); 145 printf("test: : %d\n", source);146 144 this->ALSources.pop(); 147 145 } -
branches/objectmanager/src/lib/sound/sound_source.cc
r5930 r6130 69 69 SoundEngine::getInstance()->popALSource(this->sourceID); 70 70 71 printf("%d\n",sourceID);72 71 alSourceStop(this->sourceID); 73 72 alSourcei (this->sourceID, AL_BUFFER, buffer->getID());
Note: See TracChangeset
for help on using the changeset viewer.