Changeset 9235 in orxonox.OLD for trunk/src/world_entities/skydome.cc
- Timestamp:
- Jul 5, 2006, 4:39:02 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/skydome.cc
r9006 r9235 1 1 /* 2 2 orxonox - the future of 3D-vertical-scrollers 3 3 4 4 Copyright (C) 2006 orx 5 5 6 6 This program is free software; you can redistribute it and/or modify 7 7 it under the terms of the GNU General Public License as published by 8 8 the Free Software Foundation; either version 2, or (at your option) 9 9 any later version. 10 10 11 11 ### File Specific: 12 12 main-programmer: hdavid, amaechler … … 47 47 this->toList(OM_BACKGROUND); 48 48 this->toReflectionList(); 49 49 this->indices = NULL; 50 this->vertices = NULL; 51 this->planeVertices = NULL; 52 this->shader = NULL; 50 53 activateDome = false; 51 54 … … 91 94 if(!activateDome) 92 95 return; 93 96 94 97 glPushAttrib(GL_ENABLE_BIT); 95 98 96 99 glDisable(GL_LIGHTING); 97 100 glDisable(GL_BLEND); 101 glDisable(GL_FOG); 98 102 99 103 glEnable(GL_TEXTURE_3D); … … 105 109 glTranslatef(0.0f,pRadius,0.0f); 106 110 107 108 111 glBegin(GL_TRIANGLES); 109 110 112 for (int i=0; i < numIndices; i++) 111 113 { … … 115 117 glVertex3f(planeVertices[indices[i]].x, planeVertices[indices[i]].y, planeVertices[indices[i]].z); 116 118 } 117 118 119 glEnd(); 119 120 121 WorldEntity::draw(); 122 120 123 glPopMatrix(); 121 124 … … 128 131 void Skydome::generateSkyPlane(int divisions, float planetRadius, float atmosphereRadius, float hTile, float vTile) 129 132 { 130 PRINTF(0)("Generating a sky plane ");133 PRINTF(0)("Generating a sky plane\n"); 131 134 132 135 // Make sure our vertex array is clear
Note: See TracChangeset
for help on using the changeset viewer.