本文整理汇总了C++中OverlayContainer::getChild方法的典型用法代码示例。如果您正苦于以下问题:C++ OverlayContainer::getChild方法的具体用法?C++ OverlayContainer::getChild怎么用?C++ OverlayContainer::getChild使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OverlayContainer
的用法示例。
在下文中一共展示了OverlayContainer::getChild方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setupControls
//-----------------------------------------------------------------------------------
void Sample_Compositor::setupControls(void)
{
mTrayMgr->createButton(TL_TOPLEFT, "PageButton", "Compositors", 175);
for (size_t i=0; i < COMPOSITORS_PER_PAGE; i++)
{
String checkBoxName = "Compositor_" + Ogre::StringConverter::toString(i);
CheckBox* cb = mTrayMgr->createCheckBox(TL_TOPLEFT, checkBoxName, "Compositor", 175);
cb->hide();
}
changePage(0);
mDebugTextureSelectMenu = mTrayMgr->createThickSelectMenu(TL_TOPRIGHT, "DebugRTTSelectMenu", "Debug RTT", 180, 5);
mDebugTextureSelectMenu->addItem("None");
mTrayMgr->createSeparator(TL_TOPRIGHT, "DebugRTTSep1"); // this is a hack to give the debug RTT a bit more room
DecorWidget* debugRTTPanel = mTrayMgr->createDecorWidget(TL_NONE, "DebugRTTPanel", "SdkTrays/Picture");
OverlayContainer* debugRTTContainer = (OverlayContainer*)debugRTTPanel->getOverlayElement();
mDebugTextureTUS = debugRTTContainer->getMaterial()->getBestTechnique()->getPass(0)->getTextureUnitState(0);
//mDebugTextureTUS->setTextureName("CompositorDemo/DebugView");
debugRTTContainer->setDimensions(128, 128);
debugRTTContainer->getChild("DebugRTTPanel/PictureFrame")->setDimensions(144, 144);
debugRTTPanel->hide();
mTrayMgr->createSeparator(TL_TOPRIGHT, "DebugRTTSep2"); // this is a hack to give the debug RTT a bit more room
mTrayMgr->showCursor();
mTrayMgr->showLogo(TL_BOTTOMLEFT);
mTrayMgr->toggleAdvancedFrameStats();
}