Ignore:
Timestamp:
04/29/08 16:20:37 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp

    r2660 r2664  
    309309        if (evalPixelError && (importRandomViewCells || frames)) 
    310310        { 
     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 
    311322                QGLFormat f; 
    312323                f.setStencil(true); 
     
    329340         
    330341        if (exportRandomViewCells) 
    331           { 
     342        { 
    332343                cout << "exporting random view cells" << endl; 
    333344                preprocessor->mViewCellsManager->ExportRandomViewCells(viewCellPointsFile); 
    334345                cout << "finished" << endl; 
    335           } 
     346        } 
    336347 
    337348        if (preprocessor->mUseGlRenderer || preprocessor->mUseGlDebugger) 
     
    348359                if (!rendererWidget)  
    349360                { 
    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 
    352365                                QMessageBox::information(0, "OpenGL pbuffers",  
    353366                                        "This system does not support OpenGL/pbuffers.", 
    354367                                        QMessageBox::Ok); 
     368 
    355369                                return NULL; 
    356370                        } 
     
    378392                } 
    379393 
    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  
    390394                qApp->exec(); 
    391395        } 
    392 #else // USE_QUT 
    393  
    394         //#if USE_THREADS 
    395         //      pt = new BoostPreprocessorThread(preprocessor); 
    396         //#else 
     396#else // USE_QT 
     397 
     398        /*#if USE_THREADS 
     399                pt = new BoostPreprocessorThread(preprocessor); 
     400        #else 
    397401                // use a dummy thread 
    398402                pt = new DummyPreprocessorThread(preprocessor); 
    399         //#endif 
     403        #endif 
     404        */ 
    400405#endif 
    401406 
Note: See TracChangeset for help on using the changeset viewer.