From: Javier Sancho Date: Thu, 3 Oct 2019 08:30:59 +0000 (+0200) Subject: More params X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=038a20094eff78d23bd91f4143c4543cbded6249;p=c-irrlicht.git More params --- diff --git a/include/cirrlicht.h b/include/cirrlicht.h index 80b69cb..dd5029c 100644 --- a/include/cirrlicht.h +++ b/include/cirrlicht.h @@ -30,7 +30,11 @@ extern "C" { #endif int irr_createDevice(irr_video_E_DRIVER_TYPE deviceType, - const irr_core_dimension2d_u32* windowSize); + const irr_core_dimension2d_u32* windowSize, + u_int32_t bits, + bool fullscreen, + bool stencilbuffer, + bool vsync); #ifdef __cplusplus } diff --git a/src/CIrrlicht.cpp b/src/CIrrlicht.cpp index 7f10b2b..d079cf9 100644 --- a/src/CIrrlicht.cpp +++ b/src/CIrrlicht.cpp @@ -24,13 +24,18 @@ extern "C" { int irr_createDevice(irr_video_E_DRIVER_TYPE deviceType, - const irr_core_dimension2d_u32* windowSize) + 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); + wsize, bits, fullscreen, stencilbuffer, + vsync); return 0; } }