mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-23 07:40:15 +00:00
35 lines
826 B
C++
35 lines
826 B
C++
#include <iostream>
|
|
using namespace std;
|
|
|
|
#include <MyGUI.h>
|
|
#include <MyGUI_OgrePlatform.h>
|
|
using namespace MyGUI;
|
|
|
|
#include <components/engine/ogre/renderer.hpp>
|
|
#include <OgreResourceGroupManager.h>
|
|
|
|
int main()
|
|
{
|
|
Render::OgreRenderer ogre;
|
|
ogre.configure(false, "plugins.cfg", false);
|
|
ogre.createWindow("MyGUI test");
|
|
ogre.createScene();
|
|
|
|
// Disable MyGUI logging
|
|
LogManager::initialise();
|
|
LogManager::setSTDOutputEnabled(false);
|
|
|
|
// Set up OGRE connection to MyGUI
|
|
OgrePlatform *platform = new OgrePlatform();
|
|
platform->initialise(ogre.getWindow(), ogre.getScene());
|
|
|
|
// Create GUI
|
|
Gui *gui = new Gui();
|
|
gui->initialise();
|
|
|
|
// Add the Morrowind windows resources
|
|
Ogre::ResourceGroupManager::getSingleton().
|
|
addResourceLocation("resources/mygui/", "FileSystem", "General");
|
|
|
|
return 0;
|
|
}
|