Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

branches/dave/src: Die Skybox bewegt sich schon mal, dafuer neuer fehler beim Steuern

File size: 828 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
29
30
31
32void Skybox::draw(WorldEntity* myplayer)
33{
34
35    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);
39    glRotatef(-180.0f,0.0f,0.0f,1.0f);
40    glRotatef(0.0f,0.0,1.0f,0.0f);
41    gluSphere(sphereObj,250.0f,20,20);
42    glPopMatrix();
43
44
45}
46
47
48
49
50
51
52
53
Note: See TracBrowser for help on using the repository browser.