1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <iostream>
#include <cstdlib>
#include "/home/synopfab/Desktop/ogrenew/OgreMain/include/Ogre.h"
#include "/home/synopfab/Desktop/ogrenew/OgreMain/include/OgreEventProcessor.h"
using namespace std;
int main(int argc, char *argv[])
{
Ogre::Root *root;
Ogre::RenderWindow *renderWindow;
//Ogre::EventProcessor *eventProcessor;
Ogre::SceneManager *sceneMgr;
root=new Ogre::Root();
if(!root->showConfigDialog())
{
delete root;
return 0;
}
root->initialise(true,"test OGRE");
//root->initialise(false);
//Création de la fenêtre
/*renderWindow=root->createRenderWindow("Test OGRE", 600, 600, false);
eventProcessor=new EventProcessor();
eventProcessor->initialise(renderWindow);
eventProcessor->startProcessingEvents();*/
//sceneMgr=root->createSceneManager(OGRE::ST_GENERIC);
return 0;
} |
Partager