Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/dave/src/skybox.cc @ 3409

Last change on this file since 3409 was 3409, checked in by dave, 21 years ago

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

File size: 858 bytes
RevLine 
[3407]1
2/* Created by Dave, this file is actually quite similar to player.cc and so is
3    skybox.h similar to player.h
4    With that said, things should be clear:)
5
6
7
8*/
9
10
11#include "skybox.h"
12#include "stdincl.h"
[3408]13#include "vector.h"
[3407]14#include "world_entity.h"
15
16
17using namespace std;
18
[3408]19Skybox::Skybox()
[3407]20{ 
21    //GLUquadricObj *sphereObj=0;
22    sphereObj=gluNewQuadric();
23    gluQuadricTexture(sphereObj,GL_TRUE);
24
25}
26
27Skybox::~Skybox(){}
28
[3409]29void Skybox::updatePosition(float x,float y,float z)
30{
31    this->a=x;
32    this->b=y;
33    this->c=z;
34}
[3407]35
36
[3409]37void Skybox::draw()
[3407]38{
39
40    glPushMatrix();
[3409]41    glTranslatef(this->a,this->b,this->c);
42    //glTranslatef(myplayer->absCoordinate.x,myplayer->absCoordinate.y,myplayer->absCoordinate.z);
[3408]43    glRotatef(-180.0f,0.0f,0.0f,1.0f);
44    glRotatef(0.0f,0.0,1.0f,0.0f);
[3409]45    gluSphere(sphereObj,200.0f,20,20);
[3407]46    glPopMatrix();
47
48
49}
50
51
Note: See TracBrowser for help on using the repository browser.