(add-camera-scene-node! scene-manager #:position '(0 30 -40) #:lookat '(0 5 0))
;; draw everything
-(while (device-run? device)
+(while (run device)
(begin-scene driver #:color '(255 100 101 140))
(scene-draw-all scene-manager)
(gui-draw-all gui-env)
{
init_device_type ();
scm_c_define_gsubr ("create-device", 7, 0, 0, (scm_t_subr)irr_createDevice);
+ scm_c_define_gsubr ("run", 1, 0, 0, (scm_t_subr)irr_run);
scm_c_define_gsubr ("set-window-caption!", 2, 0, 0, (scm_t_subr)irr_setWindowCaption);
}
return wrap_device (device);
}
+ SCM
+ irr_run (SCM wrapped_device)
+ {
+ irr::IrrlichtDevice* device = unwrap_device (wrapped_device);
+ return scm_from_bool (device->run ());
+ }
+
SCM
irr_setWindowCaption (SCM wrapped_device,
SCM text)