Changeset 2552 for GTP/trunk/Lib/Vis
- Timestamp:
- 10/04/07 11:57:38 (17 years ago)
- Location:
- GTP/trunk/Lib/Vis
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/BatchedQueriesCullingManager.cpp
r2306 r2552 91 91 { 92 92 SkipQuery(node); 93 94 93 continue; 95 94 } -
GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp
r2544 r2552 1274 1274 glGenTextures(1, &frontDepthMap); 1275 1275 glBindTexture(GL_TEXTURE_2D, frontDepthMap); 1276 1276 1277 1277 glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT, depthMapSize, 1278 1278 depthMapSize, 0, GL_DEPTH_COMPONENT, GL_UNSIGNED_BYTE, NULL); 1279 1279 1280 1280 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); … … 1285 1285 glGenTextures(1, &backDepthMap); 1286 1286 glBindTexture(GL_TEXTURE_2D, backDepthMap); 1287 1287 1288 1288 glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT, depthMapSize, 1289 1289 depthMapSize, 0, GL_DEPTH_COMPONENT, GL_UNSIGNED_BYTE, NULL); 1290 1290 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); 1291 1291 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); … … 1299 1299 cgSetErrorCallback(handleCgError); 1300 1300 sCgContext = cgCreateContext(); 1301 1301 1302 1302 if (cgGLIsProfileSupported(CG_PROFILE_ARBFP1)) 1303 1303 sCgFragmentProfile = CG_PROFILE_ARBFP1; 1304 1304 else 1305 1305 { 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 #endif 1332 1333 #endif 1334 1306 // try FP30 1307 if (cgGLIsProfileSupported(CG_PROFILE_FP30)) 1308 sCgFragmentProfile = CG_PROFILE_FP30; 1309 else 1310 { 1311 Debug << "Neither arbfp1 or fp30 fragment profiles supported on this system" << endl; 1312 exit(1); 1313 } 1314 } 1315 1316 sCgFragmentProgram = cgCreateProgramFromFile(sCgContext, 1317 CG_SOURCE, "../src/dual_depth.cg", 1318 sCgFragmentProfile, 1319 NULL, 1320 NULL); 1321 1322 if (!cgIsProgramCompiled(sCgFragmentProgram)) 1323 cgCompileProgram(sCgFragmentProgram); 1324 1325 cgGLLoadProgram(sCgFragmentProgram); 1326 cgGLBindProgram(sCgFragmentProgram); 1327 1328 Debug << "---- PROGRAM BEGIN ----\n" << 1329 cgGetProgramString(sCgFragmentProgram, CG_COMPILED_PROGRAM) << "---- PROGRAM END ----\n"; 1330 1331 #endif 1332 1333 #endif 1334 DoneCurrent(); 1335 1335 } 1336 1336 -
GTP/trunk/Lib/Vis/Preprocessing/src/GlobalLinesRenderer.cpp
r1990 r2552 472 472 { 473 473 //glLoadIdentity(); 474 ObjectContainer::const_iterator oit, oit_end = mPreprocessor->mObjects.end();475 476 474 Intersectable::NewMail(); 477 478 475 mRenderer->RenderScene(); 479 476 }
Note: See TracChangeset
for help on using the changeset viewer.