本文整理汇总了C++中TechniqueEventArgs类的典型用法代码示例。如果您正苦于以下问题:C++ TechniqueEventArgs类的具体用法?C++ TechniqueEventArgs怎么用?C++ TechniqueEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了TechniqueEventArgs类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: techniqueNameChanged
void WorkspacePanel::techniqueNameChanged(EventArgs& args)
{
TechniqueEventArgs tea = dynamic_cast<TechniqueEventArgs&>(args);
TechniqueController* tc = tea.getTechniqueController();
wxTreeItemId techniqueId = mTechniqueIdMap[tc];
mTreeCtrl->SetItemText(techniqueId, tc->getTechnique()->getName().c_str());
}
开发者ID:brunobg,项目名称:TuxSinbad,代码行数:8,代码来源:WorkspacePanel.cpp
示例2: lodIndexChanged
void TechniquePropertyGridPage::lodIndexChanged(EventArgs& args)
{
TechniqueEventArgs tea = dynamic_cast<TechniqueEventArgs&>(args);
TechniqueController* tc = tea.getTechniqueController();
wxPGProperty* prop = GetPropertyPtr(mLodIndexId);
if(prop == NULL) return;
prop->SetValueFromInt(tc->getTechnique()->getLodIndex());
}
开发者ID:jakzale,项目名称:ogre,代码行数:9,代码来源:TechniquePropertyGridPage.cpp
示例3: schemeNameChanged
void TechniquePropertyGridPage::schemeNameChanged(EventArgs& args)
{
TechniqueEventArgs tea = dynamic_cast<TechniqueEventArgs&>(args);
TechniqueController* tc = tea.getTechniqueController();
wxPGProperty* prop = GetPropertyPtr(mSchemeNameId);
if(prop == NULL) return;
prop->SetValueFromString(tc->getTechnique()->getSchemeName().c_str());
}
开发者ID:jakzale,项目名称:ogre,代码行数:9,代码来源:TechniquePropertyGridPage.cpp
示例4: passRemoved
void PropertiesPanel::passRemoved(EventArgs& args)
{
TechniqueEventArgs tea = dynamic_cast<TechniqueEventArgs&>(args);
PassController* pc = tea.getPassController();
PassPageIndexMap::iterator it = mPassPageIndexMap.find(pc);
if(it != mPassPageIndexMap.end())
{
mPropertyGrid->RemovePage(mPassPageIndexMap[pc]);
mPassPageIndexMap.erase(it);
}
}
开发者ID:Anti-Mage,项目名称:ogre,代码行数:12,代码来源:PropertiesPanel.cpp
示例5: techniquePassAdded
void WorkspacePanel::techniquePassAdded(EventArgs& args)
{
TechniqueEventArgs tea = dynamic_cast<TechniqueEventArgs&>(args);
TechniqueController* tc = tea.getTechniqueController();
PassController* pc = tea.getPassController();
wxTreeItemId techniqueId = mTechniqueIdMap[tc];
wxTreeItemId id = mTreeCtrl->AppendItem(techniqueId, pc->getPass()->getName().c_str(), PASS_IMAGE);
mTreeCtrl->SelectItem(id, true);
mPassIdMap[pc] = id;
}
开发者ID:brunobg,项目名称:TuxSinbad,代码行数:12,代码来源:WorkspacePanel.cpp
注:本文中的TechniqueEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论