Code: Select all
#include <irrlicht.h>
#include <iostream>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
#pragma comment(lib, "Irrlicht.lib")
int main()
{
IrrlichtDevice *device =
createDevice(EDT_DIRECT3D9, dimension2d<s32>(512, 384), 16,
false, false, false, 0);
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
smgr->loadScene("../Amphitheatrum Flavium/media/testarea.irr");
smgr->addCameraSceneNodeFPS();
device->getCursorControl()->setVisible(false);
while(device->run())
{
driver->beginScene(true, true, SColor(0, 200, 200, 200));
smgr->drawAll();
driver->endScene();
}
device->drop();
return 0;
}