so : plateform windows
I use visual c++ 7.1 .net 2003 and OGRE
and your dependencies for cegui_mk2
-> Common files (includes) (~4MB)
->Compiled library files for MSVC++ 7.1 (.Net 2003) (~6.5MB)
PS:
I could receive source code for gui_demo using cegui_mk2?
my code is simple:
Code: Select all
#include <CEGUI.h>
#include <renderers/OgreGUIRenderer/ogrerenderer.h>
#include "ExampleApplication.h"
#include "OgreEventQueue.h"
class Jeu : public ExampleApplication
{
public:
Jeu() {}
void cleanup(void)
{
delete CEGUI::System::getSingletonPtr();
if (mGUIRenderer)
{
delete mGUIRenderer;
mGUIRenderer = NULL;
}
}
CEGUI::OgreRenderer* mGUIRenderer;
protected:
//CEGUI::OgreRenderer* mGUIRenderer;
// Just override the mandatory create scene method
void createScene(void)
{
using namespace CEGUI;
// Set ambient light
mSceneMgr->setAmbientLight(ColourValue(0.5, 0.5, 0.5));
// Position the camera
mCamera->setPosition(100,50,100);
mCamera->lookAt(-50,50,0);
mWindow->setDebugText("essai");
// setup GUI system
mGUIRenderer = new CEGUI::OgreRenderer(mWindow, Ogre::RENDER_QUEUE_OVERLAY, false, 1000);
new CEGUI::System(mGUIRenderer);
}
};