Skip to content

Instantly share code, notes, and snippets.

@gashtio
Created January 28, 2013 12:34
Show Gist options
  • Save gashtio/4655183 to your computer and use it in GitHub Desktop.
Save gashtio/4655183 to your computer and use it in GitHub Desktop.
Initialization of Coherent UI plugin for CryEngine3
bool CGame::Init(IGameFramework *pFramework)
{
// Initialize Coherent UI
PluginManager::IPluginBase* pCoherentUIPlugin = gPluginManager->GetPluginByName("CoherentUI");
m_pCoherentUIPlugin = static_cast<CoherentUIPlugin::IPluginCoherentUI*>(pCoherentUIPlugin ? pCoherentUIPlugin->GetConcreteInterface() : NULL);
if (m_pCoherentUIPlugin)
{
m_pCoherentUIPlugin->InitializeSystem();
}
}
// new member variable in CGame
CoherentUIPlugin::IPluginCoherentUI* m_pCoherentUIPlugin;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment