SCM id,
SCM text)
{
- gui::IGUIImage* image =
- ((gui::IGUIEnvironment*)scm_to_pointer (gui_environment))->
- addImage ((video::ITexture*)scm_to_pointer (image),
- scm_to_position2d_s32 (position),
- scm_to_bool (use_alpha_channel),
- (TParent)scm_to_pointer (parent),
- scm_to_int32 (id),
- scm_to_wide_char_string (text));
- return scm_from_pointer ((void*)image, NULL);
+ gui::IGUIEnvironment* guienv = (gui::IGUIEnvironment*)scm_to_pointer (gui_environment);
+ gui::IGUIImage* new_image =
+ guienv->addImage ((video::ITexture*)scm_to_pointer (image),
+ scm_to_position2d_s32 (position),
+ scm_to_bool (use_alpha_channel),
+ (TParent)scm_to_pointer (parent),
+ scm_to_int32 (id),
+ scm_to_wide_char_string (text));
+ return scm_from_pointer ((void*) new_image, NULL);
}
}
+SCM
+gui_IGUIEnvironment_drawAll (SCM gui_environment)
+{
+ ((gui::IGUIEnvironment*)scm_to_pointer (gui_environment))->drawAll ();
+ return SCM_UNSPECIFIED;
+}
+
+
SCM
gui_IGUIEnvironment_getBuiltInFont (SCM gui_environment)
{
gui_IGUIEnvironment_addStaticText<gui::IGUIElement*>);
DEFINE_GSUBR ("gui_IGUIEnvironment_addWindow_IGUIElement", 6, 0, 0,
gui_IGUIEnvironment_addWindow<gui::IGUIElement*>);
+ DEFINE_GSUBR ("gui_IGUIEnvironment_drawAll", 1, 0, 0, gui_IGUIEnvironment_drawAll);
DEFINE_GSUBR ("gui_IGUIEnvironment_getBuiltInFont", 1, 0, 0, gui_IGUIEnvironment_getBuiltInFont);
DEFINE_GSUBR ("gui_IGUIEnvironment_getFont", 2, 0, 0, gui_IGUIEnvironment_getFont);
DEFINE_GSUBR ("gui_IGUIEnvironment_getSkin", 1, 0, 0, gui_IGUIEnvironment_getSkin);