本文整理汇总了C++中TechniqueController类的典型用法代码示例。如果您正苦于以下问题:C++ TechniqueController类的具体用法?C++ TechniqueController怎么用?C++ TechniqueController使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了TechniqueController类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: OnFinish
void PassWizard::OnFinish(wxWizardEvent& event)
{
Project* project = mPassPage->getProject();
MaterialController* mc = mPassPage->getMaterial();
TechniqueController* tc = mPassPage->getTechnique();
wxString name;
mPassPage->getName(name);
tc->createPass(name.c_str());
}
开发者ID:Strongc,项目名称:game-ui-solution,代码行数:11,代码来源:PassWizard.cpp
示例5: getTechniqueController
TechniqueController* MaterialController::getTechniqueController(const String& name)
{
TechniqueController* tc;
TechniqueControllerList::iterator it;
for(it = mTechniqueControllers.begin(); it != mTechniqueControllers.end(); ++it)
{
tc = (*it);
if(tc->getTechnique()->getName() == name) return tc;
}
return NULL;
}
开发者ID:logtcn,项目名称:ogre,代码行数:12,代码来源:MaterialController.cpp
示例6: materialTechniqueAdded
void WorkspacePanel::materialTechniqueAdded(EventArgs& args)
{
MaterialEventArgs mea = dynamic_cast<MaterialEventArgs&>(args);
MaterialController* mc = mea.getMaterialController();
TechniqueController* tc = mea.getTechniqueController();
wxTreeItemId materialId = mMaterialIdMap[mc];
wxTreeItemId id = mTreeCtrl->AppendItem(materialId, tc->getTechnique()->getName().c_str(), TECHNIQUE_IMAGE);
mTreeCtrl->SelectItem(id, true);
mTechniqueIdMap[tc] = id;
subscribe(tc);
}
开发者ID:brunobg,项目名称:TuxSinbad,代码行数:14,代码来源:WorkspacePanel.cpp
注:本文中的TechniqueController类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论