Changeset 4471 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Jun 2, 2005, 2:05:58 AM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/defs/debug.h
r4389 r4471 78 78 79 79 #define DEBUG_MODULE_NULL_PARENT 0 80 #define DEBUG_MODULE_NETWORK 0 80 81 81 82 -
orxonox/trunk/src/lib/graphics/light.cc
r4381 r4471 51 51 } 52 52 53 53 54 /** 54 55 \brief destroys a Light … … 58 59 glDisable(lightsV[this->lightNumber]); 59 60 } 61 60 62 61 63 /** … … 76 78 } 77 79 80 78 81 /** 79 82 \brief Sets a Position of this Light. … … 87 90 } 88 91 92 89 93 /** 90 94 \brief sets an emitting Diffuse color of this Light … … 103 107 } 104 108 109 105 110 /** 106 111 \brief sets an emitting Specular color of this Light … … 119 124 } 120 125 126 121 127 /** 122 128 \brief Sets the AttenuationType of this Light Source … … 136 142 } 137 143 144 138 145 /** 139 146 \brief stets the direction of the Spot Light. … … 149 156 } 150 157 158 151 159 /** 152 160 \brief sets the cutoff angle of the Light. … … 159 167 } 160 168 169 161 170 /** 162 171 \returns the Position of the Light … … 166 175 return Vector(this->lightPosition[0], this->lightPosition[1], this->lightPosition[2]); 167 176 } 177 168 178 169 179 /** … … 176 186 glLightfv(lightsV[this->lightNumber], GL_POSITION, pos); 177 187 } 188 178 189 179 190 /** … … 235 246 } 236 247 248 237 249 /** 238 250 \brief singleton-Reference to the Light-class 239 251 */ 240 252 LightManager* LightManager::singletonRef = NULL; 253 241 254 242 255 /** … … 250 263 } 251 264 265 252 266 /** 253 267 \brief initializes a new Light with default values, and enables GL_LIGHTING … … 257 271 lights[lightNumber] = new Light(lightNumber); 258 272 } 273 259 274 260 275 /** … … 272 287 } 273 288 289 274 290 /** 275 291 \brief Adds a new Light … … 290 306 } 291 307 308 292 309 /** 293 310 \brief select the light to work with … … 304 321 } 305 322 323 306 324 /** 307 325 \brief Delete the current Light … … 317 335 this->deleteLight(this->currentLight->getLightNumber()); 318 336 } 337 319 338 320 339 /** … … 331 350 } 332 351 } 352 333 353 334 354 /** … … 364 384 } 365 385 386 366 387 /** 367 388 \brief sets The Position of the currently selected Light … … 372 393 this->currentLight->setPosition(position); 373 394 } 395 374 396 375 397 /** … … 389 411 } 390 412 413 391 414 /** 392 415 \brief sets an emitting Diffuse color of the currently selected Light … … 405 428 } 406 429 430 407 431 /** 408 432 \brief sets an emitting Specular color of the currently selected Light … … 421 445 } 422 446 447 423 448 /** 424 449 \brief Sets the AttenuationType of th currently selecte LightSource Light Source … … 452 477 } 453 478 479 454 480 /** 455 481 \brief sets the cutoff angle of the Light. … … 466 492 } 467 493 494 468 495 // get Attributes 469 496 /** … … 480 507 return this->currentLight->getPosition(); 481 508 } 509 482 510 483 511 /** … … 496 524 } 497 525 526 498 527 /** 499 528 \returns a pointer to a Light … … 504 533 return this->lights[lightNumber]; 505 534 } 535 506 536 507 537 /** -
orxonox/trunk/src/lib/network/synchronisable.cc
r3476 r4471 16 16 */ 17 17 18 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_NETWORK 18 19 19 20 #include "synchronisable.h" … … 23 24 24 25 25 26 /** 27 \brief constructor for this class 28 */ 26 29 Synchronisable::Synchronisable () {} 27 30 28 31 29 32 /** 33 \brief deconstructor for this class 34 */ 30 35 Synchronisable::~Synchronisable () {} 31 36 32 37 38 /** 39 \brief gets the state of this object 40 \returns the state 41 */ 42 worldEntityState* Synchronisable::getState() 43 {} 44 45 46 /** 47 \brief sets the state of this object 48 \param state: the current state 49 */ 50 void Synchronisable::setState(worldEntityState* state) 51 {} -
orxonox/trunk/src/lib/network/synchronisable.h
r3476 r4471 1 /*! 2 \file synchronisable.h 3 \brief informations about objects, that needs to be synchronized over the network 4 5 this is just an idea, no implementatin yet. but sounds very good to me! 6 */ 1 7 2 8 #ifndef _SYNCHRONISABLE_H 3 9 #define _SYNCHRONISABLE_H 4 10 5 #include "data_tank.h"6 11 7 12 13 //! this is a... ehm... i have no idea... 14 typedef struct worldEntityState 15 { 16 int entity; //!< probably a entity id? hm... 17 }; 18 19 20 //! an abstract class to handle the synchronisation process 8 21 class Synchronisable { 9 22 … … 12 25 ~Synchronisable (); 13 26 14 struct worldEntityState { 15 /*Vector position; */ 16 /*Vector orientation; */ 17 }; 27 worldEntityState* getState(); 28 void setState(worldEntityState* state); 18 29 19 worldEntityState* getState(); 20 void setState(worldEntityState*); 21 30 worldentityState state; //!< the current state of the object 22 31 }; 23 32
Note: See TracChangeset
for help on using the changeset viewer.