X-Git-Url: https://git.jsancho.org/?p=c-irrlicht.git;a=blobdiff_plain;f=src%2FCIrrlicht.cpp;h=e87663d4af3318dd37974697a615f547edc66319;hp=d079cf912ce28b7cd0398e068f0299f98cf70879;hb=0c7552e0423eaefafa57e2138fed9664225a81d8;hpb=038a20094eff78d23bd91f4143c4543cbded6249 diff --git a/src/CIrrlicht.cpp b/src/CIrrlicht.cpp index d079cf9..e87663d 100644 --- a/src/CIrrlicht.cpp +++ b/src/CIrrlicht.cpp @@ -23,19 +23,20 @@ #include "cirrlicht.h" extern "C" { - int irr_createDevice(irr_video_E_DRIVER_TYPE deviceType, - const irr_core_dimension2d_u32* windowSize, - u_int32_t bits, - bool fullscreen, - bool stencilbuffer, - bool vsync) + void* irr_createDevice(irr_video_E_DRIVER_TYPE deviceType, + const irr_core_dimension2d_u32* windowSize, + u_int32_t bits, + bool fullscreen, + bool stencilbuffer, + bool vsync) { irr::core::dimension2d wsize = \ irr::core::dimension2d(windowSize->width, windowSize->height); - irr::createDevice((irr::video::E_DRIVER_TYPE)deviceType, - wsize, bits, fullscreen, stencilbuffer, - vsync); - return 0; + irr::IrrlichtDevice *device = \ + irr::createDevice((irr::video::E_DRIVER_TYPE)deviceType, + wsize, bits, fullscreen, stencilbuffer, + vsync); + return device; } }