src/gui-element.cpp \
src/gui-environment.cpp \
src/gui-image.cpp \
+ src/gui-skin.cpp \
src/gui-static-text.cpp \
src/guile-irrlicht.cpp \
src/keycodes.cpp \
#include "gui-element.h"
#include "gui-environment.h"
#include "gui-image.h"
+#include "gui-skin.h"
#include "gui-static-text.h"
#include "position2d.h"
#include "rect.h"
DEFINE_GSUBR ("add-image!", 3, 0, 1, irr_gui_addImage);
DEFINE_GSUBR ("add-static-text!", 3, 0, 1, irr_gui_addStaticText);
DEFINE_GSUBR ("get-gui-environment", 1, 0, 0, irr_getGUIEnvironment);
+ DEFINE_GSUBR ("get-skin", 1, 0, 0, irr_gui_getSkin);
}
DEFINE_WRAPPED_TYPE (irr::gui::IGUIEnvironment*, "gui-environment",
return wrap_gui_static_text (staticText);
}
+ SCM
+ irr_gui_getSkin (SCM wrapped_gui_environment)
+ {
+ irr::gui::IGUIEnvironment* guienv = unwrap_gui_environment (wrapped_gui_environment);
+ irr::gui::IGUISkin* skin = guienv->getSkin ();
+ return wrap_gui_skin (skin);
+ }
+
}
SCM rectangle,
SCM rest);
+ SCM
+ irr_gui_getSkin (SCM wrapped_gui_environment);
+
}
#endif
--- /dev/null
+/* guile-irrlicht --- GNU Guile bindings for Irrlicht Engine
+
+ Copyright (C) 2020 Javier Sancho <jsf@jsancho.org>
+
+ This file is part of guile-irrlicht.
+
+ guile-irrlicht is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 3 of the
+ License, or (at your option) any later version.
+
+ guile-irrlicht is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with guile-irrlicht. If not, see
+ <http://www.gnu.org/licenses/>.
+*/
+
+#include <irrlicht/irrlicht.h>
+#include <libguile.h>
+
+#include "gui-skin.h"
+#include "wrapped.h"
+
+extern "C" {
+
+ void
+ init_gui_skin (void)
+ {
+ init_gui_skin_type ();
+ }
+
+ DEFINE_WRAPPED_TYPE (irr::gui::IGUISkin*, "gui-skin",
+ init_gui_skin_type, gui_skin_p,
+ wrap_gui_skin, unwrap_gui_skin);
+
+}
--- /dev/null
+/* guile-irrlicht --- GNU Guile bindings for Irrlicht Engine
+
+ Copyright (C) 2020 Javier Sancho <jsf@jsancho.org>
+
+ This file is part of guile-irrlicht.
+
+ guile-irrlicht is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 3 of the
+ License, or (at your option) any later version.
+
+ guile-irrlicht is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with guile-irrlicht. If not, see
+ <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef __GUILE_IRRLICHT_GUI_SKIN_H_INCLUDED__
+#define __GUILE_IRRLICHT_GUI_SKIN_H_INCLUDED__
+
+#include <irrlicht/irrlicht.h>
+#include <libguile.h>
+#include "wrapped.h"
+
+extern "C" {
+
+ void
+ init_gui_skin (void);
+
+ DECLARE_WRAPPED_TYPE (irr::gui::IGUISkin*, init_gui_skin_type,
+ gui_skin_p, wrap_gui_skin, unwrap_gui_skin);
+}
+
+#endif
#include "gui-element.h"
#include "gui-environment.h"
#include "gui-image.h"
+#include "gui-skin.h"
#include "gui-static-text.h"
#include "guile-irrlicht.h"
#include "keymap.h"
init_gui_element ();
init_gui_environment ();
init_gui_image ();
+ init_gui_skin ();
init_gui_static_text ();
init_keymap ();
init_material ();