Changeset 19940
- Timestamp:
- 04/10/07 10:32:14 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/branches/2.0/modules/vrjuggler/vrj/Draw/Pf/PfDrawManager.cpp
r19939 r19940 116 116 mNumPipes = element->getProperty<unsigned int>("number_of_pipes"); 117 117 118 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) << "NumPipes: " << mNumPipes119 << std::endl << vprDEBUG_FLUSH;118 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 119 << "NumPipes: " << mNumPipes << std::endl << vprDEBUG_FLUSH; 120 120 121 121 // Make sure that the user has specified a valid number of pipes in the … … 147 147 } 148 148 } 149 vprDEBUG(vrjDBG_DRAW_MGR,vprDBG_CONFIG_LVL) << "Pipe:" << i << ": " 150 << mPipeStrs[i] << std::endl 151 << vprDEBUG_FLUSH; 149 150 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 151 << "Pipe " << i << ": " << mPipeStrs[i] << std::endl 152 << vprDEBUG_FLUSH; 152 153 } 153 154 return true; … … 156 157 void PfDrawManager::sync() 157 158 { 158 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL)159 << "vrj::PfDrawManager::sync \n" << vprDEBUG_FLUSH;159 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 160 << "vrj::PfDrawManager::sync()\n" << vprDEBUG_FLUSH; 160 161 pfSync(); 161 162 } … … 166 167 void PfDrawManager::draw() 167 168 { 168 vprDEBUG(vprDBG_ALL, vprDBG_VERB_LVL)169 << "[vrj::PfDrawManager::draw()] calling appChanFuncs\n"169 vprDEBUG(vprDBG_ALL, vprDBG_VERB_LVL) 170 << "[vrj::PfDrawManager::draw()] Calling app channel functions\n" 170 171 << vprDEBUG_FLUSH; 171 172 callAppChanFuncs(); … … 173 174 updatePfProjections(); 174 175 175 vprDEBUG(vprDBG_ALL, vprDBG_VERB_LVL)176 << "[vrj::PfDrawManager::draw] calling pfFrame()\n" << vprDEBUG_FLUSH;176 vprDEBUG(vprDBG_ALL, vprDBG_VERB_LVL) 177 << "[vrj::PfDrawManager::draw] Calling pfFrame()\n" << vprDEBUG_FLUSH; 177 178 178 179 pfFrame(); … … 237 238 mApp->preForkInit(); 238 239 239 vprDEBUG_BEGIN(vrjDBG_DRAW_MGR, vprDBG_STATE_LVL)240 vprDEBUG_BEGIN(vrjDBG_DRAW_MGR, vprDBG_STATE_LVL) 240 241 << "[vrj::PfDrawManager::initAPI()] Entering." << std::endl 241 242 << vprDEBUG_FLUSH; … … 255 256 { 256 257 vprDEBUG_BEGIN(vrjDBG_DRAW_MGR, vprDBG_STATE_LVL) 257 << "PfDrawManager::initAPI() Running Performer in single process to ensure cluster synchronization." 258 << "[vrj::PfDrawManager::initAPI()] Running Performer in single " 259 << "process to ensure cluster synchronization." 258 260 << std::endl << vprDEBUG_FLUSH; 259 261 // Single process mode. … … 296 298 // debugDump(vprDBG_CONFIG_LVL); 297 299 298 vprDEBUG_END(vrjDBG_DRAW_MGR, vprDBG_STATE_LVL)300 vprDEBUG_END(vrjDBG_DRAW_MGR, vprDBG_STATE_LVL) 299 301 << "[vrj::PfDrawManager::initAPI()] Exiting." << std::endl 300 302 << vprDEBUG_FLUSH; … … 320 322 { 321 323 vprDEBUG(vprDBG_ERROR, vprDBG_CRITICAL_LVL) 322 << clrOutNORM(clrRED, "ERROR :")323 << " Invalid pipe number (" << pipe_num << ") requested. "324 << "Check display system configuration \n" << vprDEBUG_FLUSH;324 << clrOutNORM(clrRED, "ERROR") 325 << ": Invalid pipe number (" << pipe_num << ") requested. " 326 << "Check display system configuration.\n" << vprDEBUG_FLUSH; 325 327 return NULL; 326 328 } … … 341 343 for(unsigned pipe_num=0; pipe_num<mNumPipes; pipe_num++) 342 344 { 343 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL)345 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 344 346 << "[vrj::PfDrawManager::initPipes()] Opening Pipe." << std::endl 345 347 << vprDEBUG_FLUSH; 346 vprDEBUG (vrjDBG_DRAW_MGR,vprDBG_CONFIG_LVL)347 << "\tpipe :" << pipe_num << ": " << mPipeStrs[pipe_num] << std::endl348 vprDEBUG_NEXT(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 349 << "\tpipe " << pipe_num << ": " << mPipeStrs[pipe_num] << std::endl 348 350 << vprDEBUG_FLUSH; 349 351 … … 376 378 // - Create viewport 377 379 // - Create channels for the viewports 378 vprDEBUG_OutputGuard( vrjDBG_DRAW_MGR, vprDBG_STATE_LVL,379 std::string("vrj::PfDrawManager: ---- Opening new Display --------\n"),380 std::string("vrj::PfDrawManager: ---- Display Open (done) --------\n"));381 382 380 vprDEBUG_OutputGuard( 381 vrjDBG_DRAW_MGR, vprDBG_STATE_LVL, 382 "[vrj::PfDrawManager::addDisplay()] ---- Opening new Display --------\n", 383 "[vrj::PfDrawManager::addDisplay()] ---- Display Open (done) --------\n" 384 ); 383 385 384 386 pfDisplay pf_disp; // The pfDisplay to use 385 387 pf_disp.disp = disp; 386 388 387 vprDEBUG(vrjDBG_DRAW_MGR,vprDBG_CONFIG_LVL) << "\tDisplay is:" << (void*)(disp) << std::endl << vprDEBUG_FLUSH; 388 vprDEBUG(vrjDBG_DRAW_MGR,vprDBG_CONFIG_LVL) << "\tPfDrawManager::add Display: Got Display:\n" << (*disp) << vprDEBUG_FLUSH; 389 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 390 << "Display is " << std::hex << (void*) disp << std::dec 391 << std::endl << vprDEBUG_FLUSH; 392 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 393 << "Got Display:\n" << *disp << vprDEBUG_FLUSH; 389 394 390 395 int xo, yo, xs, ys; … … 456 461 #ifdef VJ_DEBUG 457 462 // ouput debug info about the frame buffer config recieved 458 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL)463 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 459 464 << "[vrj::PfDrawManager::addDisplay()] Got Mono FB config\n" 460 465 << vprDEBUG_FLUSH; 461 466 for ( unsigned int j = 0 ; j < fb_config.size(); ++j ) 462 467 { 463 vprDEBUG_CONT(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL)468 vprDEBUG_CONT(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 464 469 << " " << fb_config[j] << std::endl << vprDEBUG_FLUSH; 465 470 } 466 vprDEBUG_CONT(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL)471 vprDEBUG_CONT(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 467 472 << std::endl << vprDEBUG_FLUSH; 468 473 #endif 469 474 470 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL)475 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 471 476 << "[vrj::PfDrawManager::addDisplay()] " 472 477 << "Configuring mono window attribs.\n" << vprDEBUG_FLUSH; … … 487 492 unsigned num_vps = disp->getNumViewports(); 488 493 489 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) << " Num viewports: " << num_vps << std::endl << vprDEBUG_FLUSH; 494 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 495 << " Num viewports: " << num_vps << std::endl << vprDEBUG_FLUSH; 496 490 497 for(unsigned vp_num=0; vp_num < num_vps; vp_num++) 491 498 { … … 571 578 572 579 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 573 << " PfDrawManager::addDisplay() creating simulator of type '"580 << "[vrj:;PfDrawManager::addDisplay()] Creating simulator of type '" 574 581 << sim_element->getID() << "'\n" << vprDEBUG_FLUSH; 575 582 … … 649 656 // Dump the state 650 657 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 651 << "Reconfiged the pfDrawManager.\n" << vprDEBUG_FLUSH;658 << "Reconfiged the Performer Draw Manager.\n" << vprDEBUG_FLUSH; 652 659 //vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) << (*this) << vprDEBUG_FLUSH; 653 660 debugDump(vprDBG_CONFIG_LVL); … … 710 717 if(mDisplays.end() == disp_i) 711 718 { 712 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) << "ERROR: PfDrawManager::removeDisplay: Tried to remove a non-existant display\n" << vprDEBUG_FLUSH; 719 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 720 << "ERROR: [vrj::PfDrawManager::removeDisplay()] Tried to remove a " 721 << "non-existant display!\n" << vprDEBUG_FLUSH; 713 722 return; 714 723 } … … 754 763 { 755 764 vprASSERT(false && "Trying to remove a non-existant channel"); 756 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) << "Trying to remove a non-existant pfChannel\n" << vprDEBUG_FLUSH; 765 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 766 << "Trying to remove a non-existant pfChannel\n" 767 << vprDEBUG_FLUSH; 757 768 } 758 769 … … 775 786 { 776 787 vprASSERT(false && "Trying to remove a non-existant channel"); 777 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) << "Trying to remove a non-existant pfChannel"; 788 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 789 << "Trying to remove a non-existant pfChannel\n" 790 << vprDEBUG_FLUSH; 778 791 } 779 792 … … 940 953 << disp->getName() << "'" << std::endl; 941 954 vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 942 << " has an out of date OpenGL frame buffer configuration."943 << std::endl;955 << " has an out of date OpenGL frame buffer " 956 << "configuration.\n"; 944 957 vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 945 << " Expected version 2but found version "946 << fb_element->getVersion() << ". \n";958 << " Expected version 3 but found version " 959 << fb_element->getVersion() << ". Default values\n"; 947 960 vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 948 << " Default valueswill be used for some frame buffer settings.\n"961 << " will be used for some frame buffer settings.\n" 949 962 << vprDEBUG_FLUSH; 950 963 } … … 969 982 { 970 983 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 971 << clrOutBOLD(clrYELLOW, "WARNING :")972 << " Color buffer red channel size was negative ("984 << clrOutBOLD(clrYELLOW, "WARNING") 985 << ": Color buffer red channel size was negative (" 973 986 << red_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 974 987 red_size = 1; … … 978 991 { 979 992 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 980 << clrOutBOLD(clrYELLOW, "WARNING :")981 << " Color buffer green channel size was negative ("993 << clrOutBOLD(clrYELLOW, "WARNING") 994 << ": Color buffer green channel size was negative (" 982 995 << green_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 983 996 green_size = 1; … … 987 1000 { 988 1001 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 989 << clrOutBOLD(clrYELLOW, "WARNING :")990 << " Color buffer blue channel size was negative ("1002 << clrOutBOLD(clrYELLOW, "WARNING") 1003 << ": Color buffer blue channel size was negative (" 991 1004 << blue_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 992 1005 blue_size = 1; … … 996 1009 { 997 1010 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 998 << clrOutBOLD(clrYELLOW, "WARNING :")999 << " Color buffer alpha channel size was negative ("1011 << clrOutBOLD(clrYELLOW, "WARNING") 1012 << ": Color buffer alpha channel size was negative (" 1000 1013 << alpha_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 1001 1014 alpha_size = 1; … … 1005 1018 { 1006 1019 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 1007 << clrOutBOLD(clrYELLOW, "WARNING :")1008 << " Auxiliary buffer count was negative (" << num_aux_bufs1020 << clrOutBOLD(clrYELLOW, "WARNING") 1021 << ": Auxiliary buffer count was negative (" << num_aux_bufs 1009 1022 << "). Setting to 0.\n" << vprDEBUG_FLUSH; 1010 1023 num_aux_bufs = 0; … … 1014 1027 { 1015 1028 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 1016 << clrOutBOLD(clrYELLOW, "WARNING :")1017 << " Depth buffer size was negative (" << db_size1029 << clrOutBOLD(clrYELLOW, "WARNING") 1030 << ": Depth buffer size was negative (" << db_size 1018 1031 << "). Setting to 1.\n" << vprDEBUG_FLUSH; 1019 1032 db_size = 1; … … 1023 1036 { 1024 1037 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 1025 << clrOutBOLD(clrYELLOW, "WARNING :")1026 << " Stencil buffer size was negative (" << stencil_size1038 << clrOutBOLD(clrYELLOW, "WARNING") 1039 << ": Stencil buffer size was negative (" << stencil_size 1027 1040 << "). Setting to 1.\n" << vprDEBUG_FLUSH; 1028 1041 stencil_size = 1; … … 1032 1045 { 1033 1046 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 1034 << clrOutBOLD(clrYELLOW, "WARNING :")1035 << " Accumulation buffer red channel size was negative ("1047 << clrOutBOLD(clrYELLOW, "WARNING") 1048 << ": Accumulation buffer red channel size was negative (" 1036 1049 << accum_red_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 1037 1050 accum_red_size = 1; … … 1041 1054 { 1042 1055 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 1043 << clrOutBOLD(clrYELLOW, "WARNING :")1044 << " Accumulation buffer green channel size was negative ("1056 << clrOutBOLD(clrYELLOW, "WARNING") 1057 << ": Accumulation buffer green channel size was negative (" 1045 1058 << accum_green_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 1046 1059 accum_green_size = 1; … … 1050 1063 { 1051 1064 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 1052 << clrOutBOLD(clrYELLOW, "WARNING :")1053 << " Accumulation buffer blue channel size was negative ("1065 << clrOutBOLD(clrYELLOW, "WARNING") 1066 << ": Accumulation buffer blue channel size was negative (" 1054 1067 << accum_blue_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 1055 1068 accum_blue_size = 1; … … 1059 1072 { 1060 1073 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 1061 << clrOutBOLD(clrYELLOW, "WARNING :")1062 << " Accumulation buffer alpha channel size was negative ("1074 << clrOutBOLD(clrYELLOW, "WARNING") 1075 << ": Accumulation buffer alpha channel size was negative (" 1063 1076 << accum_alpha_size << "). Setting to 1.\n" << vprDEBUG_FLUSH; 1064 1077 accum_alpha_size = 1; … … 1088 1101 const int pad_width_dot(40 - indent_level); 1089 1102 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 1090 << "OpenGL visual request settings for " << disp->getName() 1091 << ":\n"; 1103 << "OpenGL visual request settings for " << disp->getName() << ":\n"; 1092 1104 vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 1093 1105 << std::setiosflags(std::ios::left) << std::setfill('.') … … 1206 1218 void PfDrawManager::updatePfProjections() 1207 1219 { 1208 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL)1220 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 1209 1221 << "[vrj::PfDrawManager::updatePfProjections()] Entering." << std::endl 1210 1222 << vprDEBUG_FLUSH; … … 1284 1296 void PfDrawManager::updatePfProjection(pfChannel* chan, Projection* proj) //, bool simulator) 1285 1297 { 1286 1287 vprDEBUG_BEGIN(vrjDBG_DRAW_MGR,vprDBG_HVERB_LVL) 1298 vprDEBUG_BEGIN(vrjDBG_DRAW_MGR, vprDBG_HVERB_LVL) 1288 1299 << "[vrj::PfDrawManager::updatePfProjection()] Entering. viewMat:\n" 1289 1300 << proj->getViewMatrix() << std::endl << vprDEBUG_FLUSH; … … 1326 1337 */ 1327 1338 1328 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_HEX_LVL)1339 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_HEX_LVL) 1329 1340 << "Frustum: l:" << proj->getFrustum()[Frustum::VJ_LEFT] 1330 1341 << " r: " << proj->getFrustum()[Frustum::VJ_RIGHT] … … 1333 1344 << vprDEBUG_FLUSH; 1334 1345 1335 vprDEBUG_END(vrjDBG_DRAW_MGR, vprDBG_HVERB_LVL)1346 vprDEBUG_END(vrjDBG_DRAW_MGR, vprDBG_HVERB_LVL) 1336 1347 << "[vrj::PfDrawManager::updatePfProjection()] Exiting.\n" 1337 1348 << vprDEBUG_FLUSH; … … 1374 1385 void PfDrawManager::debugDump(int debugLevel) 1375 1386 { 1376 vprDEBUG_BEGIN(vrjDBG_DRAW_MGR, debugLevel)1387 vprDEBUG_BEGIN(vrjDBG_DRAW_MGR, debugLevel) 1377 1388 << "-- DEBUG DUMP --------- " 1378 1389 << clrOutNORM(clrCYAN,"vrj::PfDrawManager: 0x") 1379 << std::hex << (void*) this << " ------------" << std::dec << std::endl1380 << vprDEBUG_FLUSH; 1381 vprDEBUG_NEXT(vrjDBG_DRAW_MGR, debugLevel)1390 << std::hex << (void*) this << " ------------" << std::dec << std::endl 1391 << vprDEBUG_FLUSH; 1392 vprDEBUG_NEXT(vrjDBG_DRAW_MGR, debugLevel) 1382 1393 << "App: 0x" << std::hex << (void*)mApp << std::dec << std::endl 1383 1394 << vprDEBUG_FLUSH; 1384 vprDEBUG_NEXT(vrjDBG_DRAW_MGR, debugLevel)1395 vprDEBUG_NEXT(vrjDBG_DRAW_MGR, debugLevel) 1385 1396 << "Scene: 0x" << std::hex << (void*)mRoot << std::dec << std::endl 1386 1397 << vprDEBUG_FLUSH; 1387 vprDEBUG_NEXT(vrjDBG_DRAW_MGR, debugLevel)1398 vprDEBUG_NEXT(vrjDBG_DRAW_MGR, debugLevel) 1388 1399 << "Sim scene: 0x" << std::hex << (void*)mRootWithSim << std::dec 1389 1400 << std::endl << vprDEBUG_FLUSH; 1401 vprDEBUG_NEXT(vrjDBG_DRAW_MGR, debugLevel) 1402 << "Number of displays: " << mDisplays.size() << std::endl 1403 << vprDEBUG_FLUSH; 1404 1405 for (std::vector<pfDisplay>::iterator i = mDisplays.begin(); i != mDisplays.end(); i++) 1406 { 1407 debugDumpPfDisp(&(*i),debugLevel); 1408 } 1409 1410 vprDEBUG_END(vrjDBG_DRAW_MGR, debugLevel) 1411 << "-------- Dump end ----\n" << vprDEBUG_FLUSH; 1412 } 1413 1414 1415 void PfDrawManager::debugDumpPfDisp(pfDisplay* pf_disp, int debugLevel) 1416 { 1417 vprDEBUG_BEGIN(vrjDBG_DRAW_MGR, debugLevel) 1418 << "Display: 0x" << std::hex << (void*) pf_disp->disp << std::dec 1419 << std::endl << vprDEBUG_FLUSH; 1390 1420 vprDEBUG_NEXT(vrjDBG_DRAW_MGR,debugLevel) 1391 << "Number of displays: " << mDisplays.size() << std::endl 1392 << vprDEBUG_FLUSH; 1393 1394 for (std::vector<pfDisplay>::iterator i = mDisplays.begin(); i != mDisplays.end(); i++) 1395 { 1396 debugDumpPfDisp(&(*i),debugLevel); 1397 } 1398 1399 vprDEBUG_END(vrjDBG_DRAW_MGR,debugLevel) << "-------- Dump end ----\n" << vprDEBUG_FLUSH; 1400 } 1401 1402 1403 void PfDrawManager::debugDumpPfDisp(pfDisplay* pf_disp, int debugLevel) 1404 { 1405 vprDEBUG_BEGIN(vrjDBG_DRAW_MGR,debugLevel) 1406 << "Display: " << (void*)(pf_disp->disp) << std::endl << vprDEBUG_FLUSH; 1407 vprDEBUG_NEXT(vrjDBG_DRAW_MGR,debugLevel) 1408 << "pWin: " << (void*)(pf_disp->pWin) << std::endl << vprDEBUG_FLUSH; 1421 << "pWin: 0x" << std::hex << (void*) pf_disp->pWin << std::dec 1422 << std::endl << vprDEBUG_FLUSH; 1409 1423 vprDEBUG_NEXT(vrjDBG_DRAW_MGR,debugLevel) 1410 1424 << "visual ID: 0x" << std::hex << pf_disp->pWin->getFBConfigId() … … 1415 1429 vprASSERT((pf_disp->viewports[vp].viewport != NULL) && "NULL viewport in pf_disp. Check if it was ever set."); 1416 1430 1417 vprDEBUG_NEXT(vrjDBG_DRAW_MGR,debugLevel) << "Viewport: " << vp << vprDEBUG_FLUSH; 1418 vprDEBUG_NEXT(vrjDBG_DRAW_MGR,debugLevel) << " vp: " << *(pf_disp->viewports[vp].viewport) << vprDEBUG_FLUSH; 1431 vprDEBUG_NEXT(vrjDBG_DRAW_MGR, debugLevel) 1432 << "Viewport " << vp << vprDEBUG_FLUSH; 1433 vprDEBUG_NEXT(vrjDBG_DRAW_MGR, debugLevel) 1434 << " vp: " << *pf_disp->viewports[vp].viewport 1435 << vprDEBUG_FLUSH; 1419 1436 1420 1437 for(int ch=0;ch<2;ch++) … … 1424 1441 if(cur_chan != NULL) 1425 1442 chan_mask = cur_chan->getShare(); 1426 vprDEBUG_NEXT(vrjDBG_DRAW_MGR, debugLevel)1427 << "chan :" << ch << " -- " << (void*)cur_chan1428 << " shared: FOV:" << (chan_mask & PFCHAN_FOV)1443 vprDEBUG_NEXT(vrjDBG_DRAW_MGR, debugLevel) 1444 << "chan " << ch << " -- " << std::hex << (void*) cur_chan 1445 << std::dec << " shared: FOV:" << (chan_mask & PFCHAN_FOV) 1429 1446 << " Scene:" << (chan_mask & PFCHAN_SCENE) 1430 1447 << " AppFunc:" << (chan_mask & PFCHAN_APPFUNC) … … 1453 1470 1454 1471 // Ouput the visual id 1455 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL)1472 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 1456 1473 << "[vrj::PFconfigPWin()] framebuffer id: 0x" 1457 1474 << std::hex << pWin->getFBConfigId() << std::dec << std::endl … … 1459 1476 /* 1460 1477 int disp_num = int(pWin->getWSWindow()); 1461 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL)1478 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 1462 1479 << "[vrj::PFConfigPWin()] Window id: 0x" << std::hex << disp_num 1463 1480 << std::dec << std::endl << vprDEBUG_FLUSH; … … 1469 1486 void PfAppFunc(pfChannel *chan, void* chandata) 1470 1487 { 1471 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) << "--- PfAppFunc: Enter ---.\n" << vprDEBUG_FLUSH; 1472 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) << "chan: " << chan << std::endl << vprDEBUG_FLUSH; 1488 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 1489 << "--- PfAppFunc: Enter ---.\n" << vprDEBUG_FLUSH; 1490 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 1491 << "chan: " << std::hex << chan << std::dec << std::endl 1492 << vprDEBUG_FLUSH; 1473 1493 1474 1494 pfChannel* master_chan = PfDrawManager::instance()->mMasterChan; 1475 1495 if(master_chan == chan) 1476 1496 { 1477 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) << "I am the master of the house:\n" << vprDEBUG_FLUSH; 1497 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 1498 << "I am the master of the house:\n" << vprDEBUG_FLUSH; 1478 1499 if(PfDrawManager::instance()->mPfAppCalled == false) // Haven't called it yet 1479 1500 { 1480 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) << "pfApp has not been called yet. Let me do it...\n" << vprDEBUG_FLUSH; 1501 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 1502 << "pfApp has not been called yet. Let me do it...\n" 1503 << vprDEBUG_FLUSH; 1481 1504 PfDrawManager::instance()->mPfAppCalled = true; 1482 1505 pfApp(); … … 1499 1522 { 1500 1523 vprDEBUG_OutputGuard(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL, 1501 std::string("--- PfDrawFunc: Enter ---.\n"), 1502 std::string("--- PfDrawFunc: Exit ---.\n")); 1503 1504 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) << "chan: " << chan << std::endl << vprDEBUG_FLUSH; 1524 std::string("--- vrj::PfDrawFunc: Enter ---.\n"), 1525 std::string("--- vrj::PfDrawFunc: Exit ---.\n")); 1526 1527 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 1528 << "chan: " << std::hex << chan << std::dec << std::endl 1529 << vprDEBUG_FLUSH; 1505 1530 1506 1531 // Select correct buffer to draw to … … 1509 1534 { 1510 1535 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 1511 << " vrj::PfDrawFunc()] Drawing stereo win\n" << vprDEBUG_FLUSH;1536 << "[vrj::PfDrawFunc()] Drawing stereo win\n" << vprDEBUG_FLUSH; 1512 1537 if(left_eye) 1513 1538 { … … 1553 1578 void PfDrawFuncStereoLeft(pfChannel *chan, void* chandata) 1554 1579 { 1555 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) << "--- PfDrawFuncStereoLeft: Enter ---.\n" << vprDEBUG_FLUSH; 1556 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) << "chan: " << chan << std::endl << vprDEBUG_FLUSH; 1580 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 1581 << "--- PfDrawFuncStereoLeft: Enter ---.\n" << vprDEBUG_FLUSH; 1582 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 1583 << "chan: " << std::hex << chan << std::dec << std::endl 1584 << vprDEBUG_FLUSH; 1557 1585 PfDrawFunc(chan,chandata,true,false,true); 1558 1586 } … … 1560 1588 void PfDrawFuncStereoRight(pfChannel *chan, void* chandata) 1561 1589 { 1562 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) << "--- PfDrawFuncStereoRight: Enter ---.\n" << vprDEBUG_FLUSH; 1563 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) << "chan: " << chan << std::endl << vprDEBUG_FLUSH; 1590 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 1591 << "--- PfDrawFuncStereoRight: Enter ---.\n" << vprDEBUG_FLUSH; 1592 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 1593 << "chan: " << std::hex << chan << std::dec << std::endl 1594 << vprDEBUG_FLUSH; 1564 1595 PfDrawFunc(chan,chandata,false,true,true); 1565 1596 } … … 1567 1598 void PfDrawFuncMonoBackbuffer(pfChannel *chan, void* chandata) 1568 1599 { 1569 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) << "--- PfDrawFuncMonoBackbuffer: Enter ---.\n" << vprDEBUG_FLUSH; 1570 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) << "chan: " << chan << std::endl << vprDEBUG_FLUSH; 1600 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 1601 << "--- PfDrawFuncMonoBackbuffer: Enter ---.\n" << vprDEBUG_FLUSH; 1602 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 1603 << "chan: " << std::hex << chan << std::dec << std::endl 1604 << vprDEBUG_FLUSH; 1571 1605 PfDrawFunc(chan,chandata,false,false,false); 1572 1606 } … … 1588 1622 1589 1623 // Swap the buffer 1590 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) << "--- PfPipeSwapFunc: pipe:" << pf_draw_mgr << " -- pw:" << pw << "\n" << vprDEBUG_FLUSH; 1624 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 1625 << "--- [vrj::PfPipeSwapFunc] pipe: " << std::hex << p 1626 << " -- pw:" << pw << std::dec << "\n" << vprDEBUG_FLUSH; 1591 1627 1592 1628 // Barrier for Cluster
