- Timestamp:
- Mar 13, 2005, 11:57:19 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/glmenu/glmenu_imagescreen.cc
r3484 r3536 171 171 glDisable(GL_LIGHTING); 172 172 173 backMat->select();174 173 glBegin(GL_QUADS); 175 174 glColor3f(0.96, 0.84, 0.34); … … 210 209 glEnd(); 211 210 212 glEnable(GL_TEXTURE_2D);211 backMat->select(); 213 212 glBegin(GL_QUADS); 214 213 glTexCoord2i(0, 0); glVertex2i(offsetX, offsetY); -
orxonox/trunk/src/lib/graphics/importer/material.cc
r3454 r3536 153 153 154 154 if (this->diffuseTextureSet) 155 glBindTexture(GL_TEXTURE_2D, this->diffuseTexture->getTexture()); 155 { 156 glEnable(GL_TEXTURE_2D); 157 glBindTexture(GL_TEXTURE_2D, this->diffuseTexture->getTexture()); 158 } 156 159 else 157 glBindTexture(GL_TEXTURE_2D, 0); 158 160 { 161 glDisable(GL_TEXTURE_2D); 162 glBindTexture(GL_TEXTURE_2D, 0); 163 } 159 164 } 160 165 -
orxonox/trunk/src/world_entities/skysphere.cc
r3531 r3536 105 105 void Skysphere::draw() 106 106 { 107 glEnable(GL_TEXTURE_2D);108 107 glPushMatrix(); 109 108 glMatrixMode(GL_MODELVIEW); … … 119 118 gluSphere(sphereObj, sphereRadius, 20, 20); 120 119 glPopMatrix(); 121 glDisable(GL_TEXTURE_2D);122 120 } 123 121
Note: See TracChangeset
for help on using the changeset viewer.