#include "driver-types.h"
#include "event-receiver.h"
#include "gsubr.h"
+#include "timer.h"
#include "wchar.h"
#include "wrapped.h"
{
init_device_type ();
DEFINE_GSUBR ("create-device", 0, 0, 1, irr_createDevice);
+ 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);
}
return wrap_device (device);
}
+ SCM
+ irr_getTimer (SCM wrapped_device)
+ {
+ irr::IrrlichtDevice* device = unwrap_device (wrapped_device);
+ return wrap_timer (device->getTimer ());
+ }
+
SCM
irr_isWindowActive (SCM wrapped_device)
{
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)