]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
set-resizable!
authorJavier Sancho <jsf@jsancho.org>
Sun, 19 Apr 2020 18:07:06 +0000 (20:07 +0200)
committerJavier Sancho <jsf@jsancho.org>
Sun, 19 Apr 2020 18:07:06 +0000 (20:07 +0200)
src/device.cpp
src/device.h

index 96442c7e3797300654efd3964cb0901c94b3bdd8..cb1e4a4895724acc7d90999c54cdafd9226fd281 100644 (file)
@@ -41,6 +41,7 @@ extern "C" {
     DEFINE_GSUBR ("get-timer", 1, 0, 0, irr_getTimer);
     DEFINE_GSUBR ("is-window-active?", 1, 0, 0, irr_isWindowActive);
     DEFINE_GSUBR ("run", 1, 0, 0, irr_run);
+    DEFINE_GSUBR ("set-resizable!", 2, 0, 0, irr_setResizable);
     DEFINE_GSUBR ("set-window-caption!", 2, 0, 0, irr_setWindowCaption);
     DEFINE_GSUBR ("yield", 1, 0, 0, irr_yield);
   }
@@ -103,6 +104,15 @@ extern "C" {
     return scm_from_bool (device->run ());
   }
 
+  SCM
+  irr_setResizable (SCM wrapped_device,
+                    SCM resize)
+  {
+    irr::IrrlichtDevice* device = unwrap_device (wrapped_device);
+    device->setResizable (scm_to_bool (resize));
+    return SCM_UNSPECIFIED;
+  }
+
   SCM
   irr_setWindowCaption (SCM wrapped_device,
                         SCM text)
index 1a9046d6aed5c0da5c2aba44d91d851e8ee0d2c7..29bc783f054d657a8c673b0d2ec38ddb7215808f 100644 (file)
@@ -46,6 +46,10 @@ extern "C" {
   SCM
   irr_run (SCM wrapped_device);
 
+  SCM
+  irr_setResizable (SCM wrapped_device,
+                    SCM resize);
+
   SCM
   irr_setWindowCaption (SCM wrapped_device,
                         SCM text);