1. 程式人生 > >ogre去掉渲染資訊和logo

ogre去掉渲染資訊和logo

mTrayMgr = new OgreBites::SdkTrayManager("InterfaceName", mWindow,mMouse, this);
    //mTrayMgr->showFrameStats(OgreBites::TL_BOTTOMLEFT);//不顯示渲染的幀資訊
    //mTrayMgr->showLogo(OgreBites::TL_BOTTOMRIGHT);//不顯示logo
    //mTrayMgr->hideCursor();
 mTrayMgr->showCursor();

    // create a params panel for displaying sample details
    Ogre::StringVector items;
    items.push_back("cam.pX");
    items.push_back("cam.pY");
    items.push_back("cam.pZ");
    items.push_back("");
    items.push_back("cam.oW");
    items.push_back("cam.oX");
    items.push_back("cam.oY");
    items.push_back("cam.oZ");
    items.push_back("");
    items.push_back("Filtering");
    items.push_back("Poly Mode");

    mDetailsPanel = mTrayMgr->createParamsPanel(OgreBites::TL_NONE, "DetailsPanel", 200, items);
    mDetailsPanel->setParamValue(9, "Bilinear");
    mDetailsPanel->setParamValue(10, "Solid");
   // mDetailsPanel->hide();
 mDetailsPanel->show();