]> git.jsancho.org Git - c-irrlicht.git/commitdiff
More params
authorJavier Sancho <jsf@jsancho.org>
Thu, 3 Oct 2019 08:30:59 +0000 (10:30 +0200)
committerJavier Sancho <jsf@jsancho.org>
Thu, 3 Oct 2019 08:30:59 +0000 (10:30 +0200)
include/cirrlicht.h
src/CIrrlicht.cpp

index 80b69cbee28d39292870559eb910bb1a169cea38..dd5029ca4fb305fe312b255a5e71de0b04d5bb3c 100644 (file)
@@ -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
 }
index 7f10b2bce246147c8bdea73f75f119aeba3c9026..d079cf912ce28b7cd0398e068f0299f98cf70879 100644 (file)
 
 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<irr::u32> wsize =                    \
       irr::core::dimension2d<irr::u32>(windowSize->width,
                                        windowSize->height);
     irr::createDevice((irr::video::E_DRIVER_TYPE)deviceType,
-                      wsize);
+                      wsize, bits, fullscreen, stencilbuffer,
+                      vsync);
     return 0;
   }
 }