Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3409 in orxonox.OLD for orxonox/branches/dave/src/skybox.cc


Ignore:
Timestamp:
Feb 19, 2005, 4:53:50 PM (19 years ago)
Author:
dave
Message:

branches/dave/src: Ok, fehler behoben, jetzt kann man noch eigene Himmel einfuegen, je nach belieben:) enjoy./orxonox

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/dave/src/skybox.cc

    r3408 r3409  
    2727Skybox::~Skybox(){}
    2828
     29void Skybox::updatePosition(float x,float y,float z)
     30{
     31    this->a=x;
     32    this->b=y;
     33    this->c=z;
     34}
    2935
    3036
    31 
    32 void Skybox::draw(WorldEntity* myplayer)
     37void Skybox::draw()
    3338{
    3439
    3540    glPushMatrix();
    36     //Vector shift(myplayer->getRelCoor());
    37     //glTranslatef(shift.x,shift.y,shift.z);
    38     glTranslatef(myplayer->absCoordinate.x,myplayer->absCoordinate.y,myplayer->absCoordinate.z);
     41    glTranslatef(this->a,this->b,this->c);
     42    //glTranslatef(myplayer->absCoordinate.x,myplayer->absCoordinate.y,myplayer->absCoordinate.z);
    3943    glRotatef(-180.0f,0.0f,0.0f,1.0f);
    4044    glRotatef(0.0f,0.0,1.0f,0.0f);
    41     gluSphere(sphereObj,250.0f,20,20);
     45    gluSphere(sphereObj,200.0f,20,20);
    4246    glPopMatrix();
    4347
     
    4650
    4751
    48 
    49 
    50 
    51 
    52 
    53 
Note: See TracChangeset for help on using the changeset viewer.