SCM fullscreen = SCM_BOOL_F;
SCM stencilbuffer = SCM_BOOL_F;
SCM vsync = SCM_BOOL_F;
- SCM receiver = SCM_BOOL_F;
+ SCM receiver = SCM_UNDEFINED;
scm_c_bind_keyword_arguments ("create-device", rest, (scm_t_keyword_arguments_flags)0,
scm_from_utf8_keyword ("device-type"), &device_type,
scm_to_bool (fullscreen),
scm_to_bool (stencilbuffer),
scm_to_bool (vsync),
- scm_is_false (receiver) ? 0 : unwrap_event_receiver (receiver));
+ receiver == SCM_UNDEFINED ? 0 : unwrap_event_receiver (receiver));
return wrap_device (device);
}
SCM ignore_paths = SCM_BOOL_T;
SCM archive_type = scm_from_utf8_symbol ("unknown");
SCM password = scm_from_utf8_string ("");
- SCM ret_archive = SCM_BOOL_F;
+ SCM ret_archive = SCM_UNDEFINED;
scm_c_bind_keyword_arguments ("add-file-archive!", rest, (scm_t_keyword_arguments_flags)0,
scm_from_utf8_keyword ("ignore-case"), &ignore_case,
SCM_UNDEFINED);
irr::io::IFileArchive** retArchiveReference = 0;
- if (!scm_is_false (ret_archive))
+ if (ret_archive != SCM_UNDEFINED)
{
irr::io::IFileArchive* retArchive = unwrap_file_archive (ret_archive);
retArchiveReference = &retArchive;
SCM rest)
{
SCM use_alpha_channel = SCM_BOOL_T;
- SCM parent = SCM_BOOL_F;
+ SCM parent = SCM_UNDEFINED;
SCM id = scm_from_int32 (-1);
- SCM text = SCM_BOOL_F;
+ SCM text = SCM_UNDEFINED;
scm_c_bind_keyword_arguments ("add-image!", rest, (scm_t_keyword_arguments_flags)0,
scm_from_utf8_keyword ("use_alpha_channel"), &use_alpha_channel,
guienv->addImage (unwrap_texture (image),
scm_to_position2d_s32 (position),
scm_to_bool (use_alpha_channel),
- scm_is_false (parent) ? 0 : unwrap_gui_element (parent),
+ parent == SCM_UNDEFINED ? 0 : unwrap_gui_element (parent),
scm_to_int32 (id),
- scm_is_false (text) ? 0 : scm_to_wide_char_string (text));
+ text == SCM_UNDEFINED ? 0 : scm_to_wide_char_string (text));
return wrap_gui_image (guiImage);
}
SCM rest)
{
SCM border = SCM_BOOL_T;
- SCM parent = SCM_BOOL_F;
+ SCM parent = SCM_UNDEFINED;
SCM id = scm_from_int32 (-1);
scm_c_bind_keyword_arguments ("add-editbox!", rest, (scm_t_keyword_arguments_flags)0,
guienv->addEditBox (scm_to_wide_char_string (text),
scm_to_rect_s32 (rectangle),
scm_to_bool (border),
- scm_is_false (parent) ? 0 : unwrap_gui_element (parent),
+ parent == SCM_UNDEFINED ? 0 : unwrap_gui_element (parent),
scm_to_int32 (id));
return wrap_gui_editbox (editbox);
}
SCM rectangle,
SCM rest)
{
- SCM parent = SCM_BOOL_F;
+ SCM parent = SCM_UNDEFINED;
SCM id = scm_from_int32 (-1);
SCM draw_background = SCM_BOOL_F;
irr::gui::IGUIEnvironment* guienv = unwrap_gui_environment (wrapped_gui_environment);
irr::gui::IGUIListBox* listbox =
guienv->addListBox (scm_to_rect_s32 (rectangle),
- scm_is_false (parent) ? 0 : unwrap_gui_element (parent),
+ parent == SCM_UNDEFINED ? 0 : unwrap_gui_element (parent),
scm_to_int32 (id),
scm_to_bool (draw_background));
return wrap_gui_listbox (listbox);
SCM rectangle,
SCM rest)
{
- SCM parent = SCM_BOOL_F;
+ SCM parent = SCM_UNDEFINED;
SCM id = scm_from_int32 (-1);
scm_c_bind_keyword_arguments ("add-scrollbar!", rest, (scm_t_keyword_arguments_flags)0,
irr::gui::IGUIScrollBar* scrollbar =
guienv->addScrollBar (scm_to_bool (horizontal),
scm_to_rect_s32 (rectangle),
- scm_is_false (parent) ? 0 : unwrap_gui_element (parent),
+ parent == SCM_UNDEFINED ? 0 : unwrap_gui_element (parent),
scm_to_int32 (id));
return wrap_gui_scrollbar (scrollbar);
}
{
SCM border = SCM_BOOL_F;
SCM word_wrap = SCM_BOOL_T;
- SCM parent = SCM_BOOL_F;
+ SCM parent = SCM_UNDEFINED;
SCM id = scm_from_int32 (-1);
SCM fill_background = SCM_BOOL_F;
scm_to_rect_s32 (rectangle),
scm_to_bool (border),
scm_to_bool (word_wrap),
- scm_is_false (parent) ? 0 : unwrap_gui_element (parent),
+ parent == SCM_UNDEFINED ? 0 : unwrap_gui_element (parent),
scm_to_int32 (id),
scm_to_bool (fill_background));
return wrap_gui_static_text (staticText);
SCM rest)
{
SCM modal = SCM_BOOL_F;
- SCM text = SCM_BOOL_F;
- SCM parent = SCM_BOOL_F;
+ SCM text = SCM_UNDEFINED;
+ SCM parent = SCM_UNDEFINED;
SCM id = scm_from_int32 (-1);
scm_c_bind_keyword_arguments ("add-window!", rest, (scm_t_keyword_arguments_flags)0,
irr::gui::IGUIWindow* window =
guienv->addWindow (scm_to_rect_s32 (rectangle),
scm_to_bool (modal),
- scm_is_false (text) ? 0 : scm_to_wide_char_string (text),
- scm_is_false (parent) ? 0 : unwrap_gui_element (parent),
+ text == SCM_UNDEFINED ? 0 : scm_to_wide_char_string (text),
+ parent == SCM_UNDEFINED ? 0 : unwrap_gui_element (parent),
scm_to_int32 (id));
return wrap_gui_window (window);
}
SCM rectangle,
SCM rest)
{
- SCM parent = SCM_BOOL_F;
+ SCM parent = SCM_UNDEFINED;
SCM id = scm_from_int32 (-1);
- SCM text = SCM_BOOL_F;
- SCM tooltiptext = SCM_BOOL_F;
+ SCM text = SCM_UNDEFINED;
+ SCM tooltiptext = SCM_UNDEFINED;
scm_c_bind_keyword_arguments ("add-button!", rest, (scm_t_keyword_arguments_flags)0,
scm_from_utf8_keyword ("parent"), &parent,
irr::gui::IGUIEnvironment* guienv = unwrap_gui_environment (wrapped_gui_environment);
irr::gui::IGUIButton* button =
guienv->addButton (scm_to_rect_s32 (rectangle),
- scm_is_false (parent) ? 0 : unwrap_gui_element (parent),
+ parent == SCM_UNDEFINED ? 0 : unwrap_gui_element (parent),
scm_to_int32 (id),
- scm_is_false (text) ? 0 : scm_to_wide_char_string (text),
- scm_is_false (tooltiptext) ? 0 : scm_to_wide_char_string (tooltiptext));
+ text == SCM_UNDEFINED ? 0 : scm_to_wide_char_string (text),
+ tooltiptext == SCM_UNDEFINED ? 0 : scm_to_wide_char_string (tooltiptext));
return wrap_gui_button (button);
}
SCM rest)
{
SCM id = scm_from_int32 (-1);
- SCM text = SCM_BOOL_F;
- SCM tooltiptext = SCM_BOOL_F;
- SCM img = SCM_BOOL_F;
- SCM pressedimg = SCM_BOOL_F;
+ SCM text = SCM_UNDEFINED;
+ SCM tooltiptext = SCM_UNDEFINED;
+ SCM img = SCM_UNDEFINED;
+ SCM pressedimg = SCM_UNDEFINED;
SCM is_push_button = SCM_BOOL_F;
SCM use_alpha_channel = SCM_BOOL_F;
irr::gui::IGUIToolBar* toolbar = unwrap_gui_toolbar (wrapped_gui_toolbar);
irr::gui::IGUIButton* button =
toolbar->addButton (scm_to_int32 (id),
- scm_is_false (text) ? 0 : scm_to_wide_char_string (text),
- scm_is_false (tooltiptext) ? 0 : scm_to_wide_char_string (tooltiptext),
- scm_is_false (img) ? 0 : unwrap_texture (img),
- scm_is_false (pressedimg) ? 0 : unwrap_texture (pressedimg),
+ text == SCM_UNDEFINED ? 0 : scm_to_wide_char_string (text),
+ tooltiptext == SCM_UNDEFINED ? 0 : scm_to_wide_char_string (tooltiptext),
+ img == SCM_UNDEFINED ? 0 : unwrap_texture (img),
+ pressedimg == SCM_UNDEFINED ? 0 : unwrap_texture (pressedimg),
scm_to_bool (is_push_button),
scm_to_bool (use_alpha_channel));
return wrap_gui_button (button);
SCM mesh,
SCM rest)
{
- SCM parent = SCM_BOOL_F;
+ SCM parent = SCM_UNDEFINED;
SCM id = scm_from_int32 (-1);
SCM position = scm_list_3 (scm_from_double (0),
scm_from_double (0),
irr::scene::ISceneManager* smgr = unwrap_scene_manager (wrapped_scene_manager);
irr::scene::IAnimatedMeshSceneNode* node =
smgr->addAnimatedMeshSceneNode (unwrap_animated_mesh (mesh),
- scm_is_false (parent) ? 0 : unwrap_scene_node (parent),
+ parent == SCM_UNDEFINED ? 0 : unwrap_scene_node (parent),
scm_to_int32 (id),
scm_to_vector3df (position),
scm_to_vector3df (rotation),
irr_scene_addCameraSceneNode (SCM wrapped_scene_manager,
SCM rest)
{
- SCM parent = SCM_BOOL_F;
+ SCM parent = SCM_UNDEFINED;
SCM position = scm_list_3 (scm_from_double (0),
scm_from_double (0),
scm_from_double (0));
irr::scene::ISceneManager* scene_manager = unwrap_scene_manager (wrapped_scene_manager);
irr::scene::ICameraSceneNode* camera =
- scene_manager->addCameraSceneNode (scm_is_false (parent) ? 0 : unwrap_scene_node (parent),
+ scene_manager->addCameraSceneNode (parent == SCM_UNDEFINED ? 0 : unwrap_scene_node (parent),
scm_to_vector3df (position),
scm_to_vector3df (lookat),
scm_to_int32 (id),
irr_scene_addCameraSceneNodeFPS (SCM wrapped_scene_manager,
SCM rest)
{
- SCM parent = SCM_BOOL_F;
+ SCM parent = SCM_UNDEFINED;
SCM rotate_speed = scm_from_double (100);
SCM move_speed = scm_from_double (0.5);
SCM id = scm_from_int32 (-1);
- SCM key_map_array = SCM_BOOL_F;
+ SCM key_map_array = SCM_UNDEFINED;
SCM key_map_size = scm_from_int32 (0);
SCM no_vertical_movement = SCM_BOOL_F;
SCM jump_speed = scm_from_double (0);
irr::scene::ISceneManager* scene_manager = unwrap_scene_manager (wrapped_scene_manager);
irr::scene::ICameraSceneNode* camera =
- scene_manager->addCameraSceneNodeFPS (scm_is_false (parent) ? 0 : unwrap_scene_node (parent),
+ scene_manager->addCameraSceneNodeFPS (parent == SCM_UNDEFINED ? 0 : unwrap_scene_node (parent),
scm_to_double (rotate_speed),
scm_to_double (move_speed),
scm_to_int32 (id),
- scm_is_false (key_map_array) ? 0 : unwrap_keymap (key_map_array),
+ key_map_array == SCM_UNDEFINED ? 0 : unwrap_keymap (key_map_array),
scm_to_int32 (key_map_size),
scm_to_bool (no_vertical_movement),
scm_to_double (jump_speed),
SCM rest)
{
SCM size = scm_from_double (10);
- SCM parent = SCM_BOOL_F;
+ SCM parent = SCM_UNDEFINED;
SCM id = scm_from_int32 (-1);
SCM position = scm_list_3 (scm_from_double (0),
scm_from_double (0),
irr::scene::ISceneManager* smgr = unwrap_scene_manager (wrapped_scene_manager);
irr::scene::IMeshSceneNode* node =
smgr->addCubeSceneNode (scm_to_double (size),
- scm_is_false (parent) ? 0 : unwrap_scene_node (parent),
+ parent == SCM_UNDEFINED ? 0 : unwrap_scene_node (parent),
scm_to_int32 (id),
scm_to_vector3df (position),
scm_to_vector3df (rotation),
SCM wrapped_mesh,
SCM rest)
{
- SCM parent = SCM_BOOL_F;
+ SCM parent = SCM_UNDEFINED;
SCM id = scm_from_int32 (-1);
SCM minimal_polys_per_node = scm_from_int32 (256);
SCM also_add_if_mesh_pointer_zero = SCM_BOOL_F;
if (animated_mesh_p (wrapped_mesh))
{
node = smgr->addOctreeSceneNode (unwrap_animated_mesh (wrapped_mesh),
- scm_is_false (parent) ? 0 : unwrap_scene_node (parent),
+ parent == SCM_UNDEFINED ? 0 : unwrap_scene_node (parent),
scm_to_int32 (id),
scm_to_int32 (minimal_polys_per_node),
scm_to_bool (also_add_if_mesh_pointer_zero));
else
{
node = smgr->addOctreeSceneNode (unwrap_mesh (wrapped_mesh),
- scm_is_false (parent) ? 0 : unwrap_scene_node (parent),
+ parent == SCM_UNDEFINED ? 0 : unwrap_scene_node (parent),
scm_to_int32 (id),
scm_to_int32 (minimal_polys_per_node),
scm_to_bool (also_add_if_mesh_pointer_zero));
{
SCM radius = scm_from_double (5.0);
SCM poly_count = scm_from_int32 (16);
- SCM parent = SCM_BOOL_F;
+ SCM parent = SCM_UNDEFINED;
SCM id = scm_from_int32 (-1);
SCM position = scm_list_3 (scm_from_double (0),
scm_from_double (0),
irr::scene::IMeshSceneNode* node =
smgr->addSphereSceneNode (scm_to_double (radius),
scm_to_int32 (poly_count),
- scm_is_false (parent) ? 0 : unwrap_scene_node (parent),
+ parent == SCM_UNDEFINED ? 0 : unwrap_scene_node (parent),
scm_to_int32 (id),
scm_to_vector3df (position),
scm_to_vector3df (rotation),
scm_from_uint32 (0),
scm_from_uint32 (0));
SCM video_data = SCM_BOOL_F;
- SCM source_rect = SCM_BOOL_F;
+ SCM source_rect = SCM_UNDEFINED;
scm_c_bind_keyword_arguments ("begin-scene", rest, (scm_t_keyword_arguments_flags)0,
scm_from_utf8_keyword ("back-buffer"), &back_buffer,
irr::video::IVideoDriver* driver = unwrap_video_driver (wrapped_video_driver);
irr::core::rect<irr::s32>* sourceRectAddress = 0;
- if (!scm_is_false (source_rect))
+ if (source_rect != SCM_UNDEFINED)
{
irr::core::rect<irr::s32> sourceRect = scm_to_rect_s32 (source_rect);
sourceRectAddress = &sourceRect;