Changeset 3809 in orxonox.OLD for orxonox/trunk/src/lib
- Timestamp:
- Apr 13, 2005, 9:52:34 PM (20 years ago)
- Location:
- orxonox/trunk/src/lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/null_parent.cc
r3669 r3809 40 40 \todo this constructor is not jet implemented - do it 41 41 */ 42 NullParent::NullParent () : PNode ( newVector(0,0,0), NULL)42 NullParent::NullParent () : PNode (Vector(0,0,0), NULL) 43 43 { 44 44 PRINTF(4)("NullParent::NullParent() - making new NullParent, there can only be one..\n"); … … 49 49 50 50 51 NullParent::NullParent ( Vector* absCoordinate) : PNode (newVector(0,0,0), NULL)51 NullParent::NullParent (const Vector& absCoordinate) : PNode (Vector(0,0,0), NULL) 52 52 { 53 53 singletonRef = this; 54 54 this->parent = this; 55 55 this->mode = PNODE_ALL; 56 *this->absCoordinate = *absCoordinate;56 *this->absCoordinate = absCoordinate; 57 57 this->setName("NullParent"); 58 58 } -
orxonox/trunk/src/lib/coord/null_parent.h
r3644 r3809 23 23 private: 24 24 NullParent (); 25 NullParent ( Vector*absCoordinate);25 NullParent (const Vector& absCoordinate); 26 26 static NullParent* singletonRef; 27 27 -
orxonox/trunk/src/lib/coord/p_node.cc
r3804 r3809 55 55 \param parent The parent-node of this node. 56 56 */ 57 PNode::PNode ( Vector*absCoordinate, PNode* parent )57 PNode::PNode (const Vector& absCoordinate, PNode* parent ) 58 58 { 59 59 this->init(parent); 60 60 61 *this->absCoordinate = *absCoordinate;61 *this->absCoordinate = absCoordinate; 62 62 63 63 __LIKELY_IF(parent != NULL) … … 191 191 has changed and won't update the children Nodes. 192 192 */ 193 /* 193 194 void PNode::setAbsCoor (Vector* absCoord) 194 195 { … … 196 197 *this->absCoordinate = *absCoord; 197 198 } 198 199 */ 199 200 200 201 … … 206 207 has changed and won't update the children Nodes. 207 208 */ 208 void PNode::setAbsCoor ( VectorabsCoord)209 void PNode::setAbsCoor (const Vector& absCoord) 209 210 { 210 211 this->bAbsCoorChanged = true; … … 269 270 270 271 */ 271 void PNode::shiftCoor ( Vectorshift)272 void PNode::shiftCoor (const Vector& shift) 272 273 { 273 274 -
orxonox/trunk/src/lib/coord/p_node.h
r3804 r3809 49 49 public: 50 50 PNode (); 51 PNode ( Vector*absCoordinate, PNode* pNode);51 PNode (const Vector& absCoordinate, PNode* pNode); 52 52 virtual ~PNode (); 53 53 … … 61 61 void setRelCoor (Vector relCoord); 62 62 inline Vector getAbsCoor () const { return *this->absCoordinate; } 63 void setAbsCoor (Vector* absCoord);64 void setAbsCoor ( VectorabsCoord);63 //void setAbsCoor (Vector* absCoord); 64 void setAbsCoor (const Vector& absCoord); 65 65 void shiftCoor (Vector* shift); 66 void shiftCoor ( Vectorshift);66 void shiftCoor (const Vector& shift); 67 67 //void shiftCoor (Vector shift); 68 68 -
orxonox/trunk/src/lib/graphics/light.cc
r3608 r3809 70 70 this->lightPosition[3] = 0.0; 71 71 72 this->setAbsCoor( &position);72 this->setAbsCoor(position); 73 73 74 74 glLightfv (lightsV[this->lightNumber], GL_POSITION, this->lightPosition);
Note: See TracChangeset
for help on using the changeset viewer.