本文整理汇总了C++中Mod::getAssimpModel方法的典型用法代码示例。如果您正苦于以下问题:C++ Mod::getAssimpModel方法的具体用法?C++ Mod::getAssimpModel怎么用?C++ Mod::getAssimpModel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mod
的用法示例。
在下文中一共展示了Mod::getAssimpModel方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: loadModBits
/**
* Load stuff from the currently loaded mods into some arrays.
**/
void Menu::loadModBits(UIUpdate* ui)
{
Mod* mod = GEng()->mm->getSupplOrBase();
this->gm->loadModBits(ui);
// Logo
delete(this->logo);
this->logo = this->render->loadSprite("menu/logo.png", mod);
if (!this->logo) {
this->logo = this->render->loadSprite("menu/logo.png", GEng()->mm->getBase());
}
// Background
delete(this->bg);
this->bg = this->render->loadSprite("menu/bg.jpg", mod);
if (!this->bg) {
this->bg = this->render->loadSprite("menu/bg.jpg", GEng()->mm->getBase());
}
// Rotating model
delete(this->play);
this->model = NULL;
this->play = NULL;
if (!mod->getMenuModelName().empty()) {
this->model_rot = -10.0f;
this->model = mod->getAssimpModel(mod->getMenuModelName());
if (this->model != NULL) {
this->play = new AnimPlay(this->model);
}
}
// Font always loaded from base mod
if (this->font == NULL) {
this->font = new OpenGLFont(this->render, "DejaVuSans", GEng()->mm->getBase(), 20.0f * GEng()->gui_scale);
}
this->loadMenuItems();
}