Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4471 in orxonox.OLD for orxonox/trunk/src/lib/graphics


Ignore:
Timestamp:
Jun 2, 2005, 2:05:58 AM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: synchronisable class commented, light altered

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/light.cc

    r4381 r4471  
    5151}
    5252
     53
    5354/**
    5455   \brief destroys a Light
     
    5859  glDisable(lightsV[this->lightNumber]);
    5960}
     61
    6062
    6163/**
     
    7678}
    7779
     80
    7881/**
    7982   \brief Sets a Position of this Light.
     
    8790}
    8891
     92
    8993/**
    9094   \brief sets an emitting Diffuse color of this Light
     
    103107}
    104108
     109
    105110/**
    106111   \brief sets an emitting Specular color of this Light
     
    119124}
    120125
     126
    121127/**
    122128   \brief Sets the AttenuationType of this Light Source
     
    136142}
    137143
     144
    138145/**
    139146   \brief stets the direction of the Spot Light.
     
    149156}
    150157
     158
    151159/**
    152160   \brief sets the cutoff angle of the Light.
     
    159167}
    160168
     169
    161170/**
    162171   \returns the Position of the Light
     
    166175  return Vector(this->lightPosition[0], this->lightPosition[1], this->lightPosition[2]);
    167176}
     177
    168178
    169179/**
     
    176186  glLightfv(lightsV[this->lightNumber], GL_POSITION, pos);
    177187}
     188
    178189
    179190/**
     
    235246}
    236247
     248
    237249/**
    238250   \brief singleton-Reference to the Light-class
    239251*/
    240252LightManager* LightManager::singletonRef = NULL;
     253
    241254
    242255/**
     
    250263}
    251264
     265
    252266/**
    253267   \brief initializes a new Light with default values, and enables GL_LIGHTING
     
    257271  lights[lightNumber] = new Light(lightNumber);
    258272}
     273
    259274
    260275/**
     
    272287}
    273288
     289
    274290/**
    275291   \brief Adds a new Light
     
    290306}
    291307
     308
    292309/**
    293310   \brief select the light to work with
     
    304321}
    305322
     323
    306324/**
    307325   \brief Delete the current Light
     
    317335  this->deleteLight(this->currentLight->getLightNumber());
    318336}
     337
    319338
    320339/**
     
    331350    }
    332351}
     352
    333353
    334354/**
     
    364384}
    365385
     386
    366387/**
    367388   \brief sets The Position of the currently selected Light
     
    372393  this->currentLight->setPosition(position);
    373394}
     395
    374396
    375397/**
     
    389411}
    390412
     413
    391414/**
    392415   \brief sets an emitting Diffuse color of the currently selected Light
     
    405428}
    406429
     430
    407431/**
    408432   \brief sets an emitting Specular color of the currently selected Light
     
    421445}
    422446
     447
    423448/**
    424449   \brief Sets the AttenuationType of th currently selecte LightSource Light Source
     
    452477}
    453478
     479
    454480/**
    455481   \brief sets the cutoff angle of the Light.
     
    466492}
    467493
     494
    468495// get Attributes
    469496/**
     
    480507    return this->currentLight->getPosition();
    481508}
     509
    482510
    483511/**
     
    496524}
    497525
     526
    498527/**
    499528   \returns a pointer to a Light
     
    504533  return this->lights[lightNumber];
    505534}
     535
    506536
    507537/**
Note: See TracChangeset for help on using the changeset viewer.