Changeset 7544 in orxonox.OLD for branches/bsp_model/src/lib/graphics/importer/bsp_manager.cc
- Timestamp:
- May 5, 2006, 8:23:48 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/graphics/importer/bsp_manager.cc
r7511 r7544 189 189 } 190 190 if(curFace.type == 3) return; 191 // if(this->bspFile->Materials[curFace.texture] != NULL) 192 //if(this->lastTex != curFace.texture) { 191 // if(this->bspFile->Materials[curFace.texture] != NULL) 192 193 if(this->lastTex != curFace.texture) { 193 194 this->bspFile->Materials[curFace.texture].mat->select(); 194 //this->lastTex = curFace.texture;195 //}195 this->lastTex = curFace.texture; 196 } 196 197 197 198 if(curFace.lm_index < 0) … … 208 209 } 209 210 210 glColor4f(3.0,3.0,3.0, 0.9);211 glEnableClientState(GL_VERTEX_ARRAY ); 212 //glEnableClientState(GL_TEXTURE_COORD_ARRAY );211 glColor4f(3.0,3.0,3.0,1.0); 212 glEnableClientState(GL_VERTEX_ARRAY ); 213 glEnableClientState(GL_TEXTURE_COORD_ARRAY ); 213 214 glEnableClientState(GL_NORMAL_ARRAY ); 214 215 // glEnableClientState(GL_COLOR_ARRAY); … … 223 224 glClientActiveTextureARB(GL_TEXTURE1_ARB); 224 225 glTexCoordPointer(2, GL_FLOAT, stride, &(curVertex[offset].texcoord[1])); 225 glEnableClientState(GL_TEXTURE_COORD_ARRAY);226 //glEnableClientState(GL_TEXTURE_COORD_ARRAY); 226 227 227 228 … … 287 288 void BspManager::draw_patch(face* Face) 288 289 { 289 //if(this->lastTex != Face->texture) {290 if(this->lastTex != Face->texture) { 290 291 this->bspFile->Materials[Face->texture].mat->select(); 291 //this->lastTex = Face->texture;292 //}292 this->lastTex = Face->texture; 293 } 293 294 294 295 … … 306 307 glEnable(GL_TEXTURE_2D); 307 308 } 308 glColor4f(3.0,3.0,3.0, 0.9);309 glColor4f(3.0,3.0,3.0,1.0); 309 310 310 311 glEnable( GL_AUTO_NORMAL); … … 328 329 glClientActiveTextureARB(GL_TEXTURE1_ARB); 329 330 glTexCoordPointer(2, GL_FLOAT, 44, &((((BspVertex*)(this->bspFile->patchVertice))[8*8*(Face->meshvert+i)]).texcoord[1][0])); 330 glEnableClientState(GL_TEXTURE_COORD_ARRAY);331 //glEnableClientState(GL_TEXTURE_COORD_ARRAY); 331 332 332 333
Note: See TracChangeset
for help on using the changeset viewer.