Created
January 28, 2013 12:34
-
-
Save gashtio/4655183 to your computer and use it in GitHub Desktop.
Initialization of Coherent UI plugin for CryEngine3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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