Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 3411 was 3410, checked in by dave, 20 years ago

branches/dave/src: Ok, Himmel heller gemacht in orxonox.cc durch hinzufuegen eine Lichquelle, zusaetzlich Himmel noch ein wenig gedreht

File size: 796 bytes
Line 
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"
13#include "vector.h"
14#include "world_entity.h"
15
16
17using namespace std;
18
19Skybox::Skybox()
20{ 
21    //GLUquadricObj *sphereObj=0;
22    sphereObj=gluNewQuadric();
23    gluQuadricTexture(sphereObj,GL_TRUE);
24
25}
26
27Skybox::~Skybox(){}
28
29void Skybox::updatePosition(float x,float y,float z)
30{
31    this->a=x;
32    this->b=y;
33    this->c=z;
34}
35
36
37void Skybox::draw()
38{
39
40    glPushMatrix();
41    glTranslatef(this->a,this->b,this->c);
42   
43    glRotatef(-30,1,0,0);
44    glRotatef(95.0f,0.0f,0.0f,1.0f);
45    glRotatef(-250.0f,0.0,1.0f,0.0f);
46   
47    gluSphere(sphereObj,200.0f,20,20);
48    glPopMatrix();
49
50
51}
52
53
Note: See TracBrowser for help on using the repository browser.