Hey,
I have been trying to merge Irrlicht and DarkGDK, and it works so far. My problem is that I get 2 devices one for DarkGDK and one for Irrlicht, i was wondering if it is possible to merge them somehow.
*So basicaly i get two screens, one of darkgdk, and one of irrlicht engine. My question is if u can control irrlicht engine with darkgdk commands? Well basicaly irrlicht is a library so i would guess it is possible?
This is my code:
#include "DarkGDK.h"
#include <irrlicht.h>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
#ifdef _IRR_WINDOWS_
#pragma comment(lib, "Irrlicht.lib")
#endif
void DarkGDK()
{
IrrlichtDevice *device = createDevice( video::EDT_DIRECT3D9, dimension2d<u32>(640, 480), 16,false, false, false, 0);
device->setWindowCaption(L"Hello");
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();
while ( LoopGDK() )
{
driver->beginScene(true, true, SColor(255,100,101,140));
smgr->drawAll();
guienv->drawAll();
driver->endScene();
dbSync();
}
device->drop();
}