Changeset 3519 in orxonox.OLD for orxonox/branches/trackManager/src/world_entities/skysphere.cc
- Timestamp:
- Mar 12, 2005, 1:26:46 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/trackManager/src/world_entities/skysphere.cc
r3498 r3519 41 41 } 42 42 43 43 44 /** 44 45 \brief Constructs a SkySphere and takes fileName as a map. … … 49 50 initialize(fileName); 50 51 } 52 51 53 52 54 /** … … 59 61 free(sphereObj); 60 62 } 63 61 64 62 65 /** … … 79 82 80 83 /** 81 \brief sets the Radius of the Sphere.82 \param radius The Radius of The Sphere83 */84 void Skysphere::setRadius(float radius)85 {86 this->sphereRadius = radius;87 }88 89 90 /**91 84 \brief Defines which texture should be loaded onto the skysphere. 92 85 \param fileName The filename of the Texture … … 95 88 { 96 89 this->skyMaterial->setDiffuseMap(fileName); 97 }98 99 100 /**101 \brief updates the position of the Skysphere102 \param sphereCenter The coordinate of the Center of the Sphere103 104 This is normally done in the update-phase of world, so the Skysphere is always centered at the Camera.105 */106 void Skysphere::updatePosition(Vector sphereCenter)107 {108 this->sphereCenter = sphereCenter;109 90 } 110 91 … … 120 101 skyMaterial->select(); 121 102 glPushMatrix(); 122 glTranslatef(this->sphereCenter.x,this->sphereCenter.y,this->sphereCenter.z); 123 124 glRotatef(-30, 1, 0, 0); 125 glRotatef(95.0f, 0.0f, 0.0f, 1.0f); 126 glRotatef(-250.0f, 0.0, 1.0f, 0.0f); 103 glTranslatef(this->absCoordinate.x, 104 this->absCoordinate.y, 105 this->absCoordinate.z); 106 107 //glRotatef(-30, 1, 0, 0); 108 //glRotatef(95.0f, 0.0f, 0.0f, 1.0f); 109 //glRotatef(-250.0f, 0.0, 1.0f, 0.0f); 127 110 128 111 gluSphere(sphereObj, sphereRadius, 20, 20); … … 130 113 glDisable(GL_TEXTURE_2D); 131 114 } 115 116 117 /** 118 \brief sets the Radius of the Sphere. 119 \param radius The Radius of The Sphere 120 */ 121 void Skysphere::setRadius(float radius) 122 { 123 this->sphereRadius = radius; 124 }
Note: See TracChangeset
for help on using the changeset viewer.