Changeset 2664 for GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp
- Timestamp:
- 04/29/08 16:20:37 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp
r2660 r2664 309 309 if (evalPixelError && (importRandomViewCells || frames)) 310 310 { 311 if (!QGLFormat::hasOpenGL() || !QGLPixelBuffer::hasOpenGLPbuffers()) 312 { 313 cerr << "this system does not support OpenGL/pbuffers" << endl; 314 315 QMessageBox::information(0, "OpenGL pbuffers", 316 "This system does not support OpenGL/pbuffers.", 317 QMessageBox::Ok); 318 319 return NULL; 320 } 321 311 322 QGLFormat f; 312 323 f.setStencil(true); … … 329 340 330 341 if (exportRandomViewCells) 331 342 { 332 343 cout << "exporting random view cells" << endl; 333 344 preprocessor->mViewCellsManager->ExportRandomViewCells(viewCellPointsFile); 334 345 cout << "finished" << endl; 335 346 } 336 347 337 348 if (preprocessor->mUseGlRenderer || preprocessor->mUseGlDebugger) … … 348 359 if (!rendererWidget) 349 360 { 350 if (!QGLFormat::hasOpenGL() || !QGLPixelBuffer::hasOpenGLPbuffers()) { 351 cout << "damn" << endl; 361 if (!QGLFormat::hasOpenGL() || !QGLPixelBuffer::hasOpenGLPbuffers()) 362 { 363 cerr << "this system does not support OpenGL/pbuffers" << endl; 364 352 365 QMessageBox::information(0, "OpenGL pbuffers", 353 366 "This system does not support OpenGL/pbuffers.", 354 367 QMessageBox::Ok); 368 355 369 return NULL; 356 370 } … … 378 392 } 379 393 380 381 /*bool evaluatePixelError;382 Environment::GetSingleton()->GetBoolValue("Preprocessor.evaluatePixelError", evaluatePixelError);383 384 if (evaluatePixelError)385 {386 cout << "evaluating pixel error" << endl;387 preprocessor->ComputeRenderError();388 }*/389 390 394 qApp->exec(); 391 395 } 392 #else // USE_Q UT393 394 / /#if USE_THREADS395 //pt = new BoostPreprocessorThread(preprocessor);396 //#else396 #else // USE_QT 397 398 /*#if USE_THREADS 399 pt = new BoostPreprocessorThread(preprocessor); 400 #else 397 401 // use a dummy thread 398 402 pt = new DummyPreprocessorThread(preprocessor); 399 //#endif 403 #endif 404 */ 400 405 #endif 401 406
Note: See TracChangeset
for help on using the changeset viewer.