#ifndef __GUILE_IRRLICHT_ANIMATED_MESH_SCENE_NODE_H_INCLUDED__
#define __GUILE_IRRLICHT_ANIMATED_MESH_SCENE_NODE_H_INCLUDED__
-#include <irrlicht/irrlicht.h>
-#include <libguile.h>
-
-SCM
-scene_IAnimatedMeshSceneNode_setFrameLoop (SCM animated_mesh_scene_node,
- SCM begin,
- SCM end);
-
-SCM
-scene_IAnimatedMeshSceneNode_setMD2Animation (SCM animated_mesh_scene_node,
- SCM anim);
-
extern "C" {
void
init_animated_mesh_scene_node (void);
#ifndef __GUILE_IRRLICHT_ANIMATED_MESH_H_INCLUDED__
#define __GUILE_IRRLICHT_ANIMATED_MESH_H_INCLUDED__
-#include <irrlicht/irrlicht.h>
-#include <libguile.h>
-
-
-SCM
-scene_IAnimatedMesh_setAnimationSpeed (SCM animated_mesh,
- SCM frames_per_second);
-
extern "C" {
void
init_animated_mesh (void);
#ifndef __GUILE_IRRLICHT_AABBOX_3D_H_INCLUDED__
#define __GUILE_IRRLICHT_AABBOX_3D_H_INCLUDED__
-#include <irrlicht/irrlicht.h>
-#include <libguile.h>
-
-SCM
-core_aabbox3d_addInternalPoint (SCM box3d,
- SCM point);
-
-SCM
-core_aabbox3d_make ();
-
-SCM
-core_aabbox3d_reset (SCM box3d,
- SCM init_value);
-
extern "C" {
void
init_box3d (void);
#include "color.h"
+using namespace irr;
+
+
SCM
-scm_from_color (irr::video::SColor color)
+scm_from_color (video::SColor color)
{
return scm_list_4 (scm_from_uint32 (color.getAlpha ()),
scm_from_uint32 (color.getRed ()),
}
-irr::video::SColor
+video::SColor
scm_to_color (SCM color)
{
- return irr::video::SColor
+ return video::SColor
(scm_to_uint32 (scm_car (color)),
scm_to_uint32 (scm_cadr (color)),
scm_to_uint32 (scm_caddr (color)),
#ifndef __GUILE_IRRLICHT_CURSOR_CONTROL_H_INCLUDED__
#define __GUILE_IRRLICHT_CURSOR_CONTROL_H_INCLUDED__
-#include <irrlicht/irrlicht.h>
-#include <libguile.h>
-
-SCM
-gui_ICursorControl_getPosition (SCM cursor_control);
-
-SCM
-gui_ICursorControl_setPosition (SCM cursor_control,
- SCM position);
-
extern "C" {
void
init_cursor_control (void);
#ifndef __GUILE_IRRLICHT_DEVICE_H_INCLUDED__
#define __GUILE_IRRLICHT_DEVICE_H_INCLUDED__
-#include <irrlicht/irrlicht.h>
-#include <libguile.h>
-
-template <typename TEventReceiver>
-SCM
-createDevice (SCM device_type,
- SCM window_size,
- SCM bits,
- SCM fullscreen,
- SCM stencilbuffer,
- SCM vsync,
- SCM receiver);
-
-SCM
-IrrlichtDevice_getCursorControl (SCM device);
-
-SCM
-IrrlichtDevice_getFileSystem (SCM device);
-
-SCM
-IrrlichtDevice_getGUIEnvironment (SCM device);
-
-SCM
-IrrlichtDevice_getSceneManager (SCM device);
-
-SCM
-IrrlichtDevice_getTimer (SCM device);
-
-SCM
-IrrlichtDevice_getVideoDriver (SCM device);
-
-SCM
-IrrlichtDevice_isWindowActive (SCM device);
-
-SCM
-IrrlichtDevice_run (SCM device);
-
-template <typename TEventReceiver>
-SCM
-IrrlichtDevice_setEventReceiver (SCM device,
- SCM receiver);
-
-SCM
-IrrlichtDevice_setResizable (SCM device,
- SCM resize);
-
-SCM
-IrrlichtDevice_setWindowCaption (SCM device,
- SCM text);
-
-SCM
-IrrlichtDevice_yield (SCM device);
-
extern "C" {
void
init_device (void);
#include <irrlicht/irrlicht.h>
#include <libguile.h>
-SCM
-IEventRecevier_make (SCM proc_on_event);
-
-SCM
-SEvent_EventType (SCM event);
-
-SCM
-SEvent_SGUIEvent_Caller (SCM event);
-
-SCM
-SEvent_SGUIEvent_EventType (SCM event);
-
-SCM
-SEvent_SKeyInput_Key (SCM event);
-
-SCM
-SEvent_SKeyInput_PressedDown (SCM event);
-
extern "C" {
void
init_event_receiver (void);
#ifndef __GUILE_IRRLICHT_FILE_SYSTEM_H_INCLUDED__
#define __GUILE_IRRLICHT_FILE_SYSTEM_H_INCLUDED__
-#include <irrlicht/irrlicht.h>
-#include <libguile.h>
-
-SCM
-io_IFileSystem_addFileArchive (SCM file_system,
- SCM filename,
- SCM ignore_case,
- SCM ignore_paths,
- SCM archive_type,
- SCM password,
- SCM ret_archive);
-
extern "C" {
void
init_file_system (void);
#ifndef __GUILE_IRRLICHT_GUI_ENVIRONMENT_H_INCLUDED__
#define __GUILE_IRRLICHT_GUI_ENVIRONMENT_H_INCLUDED__
-#include <irrlicht/irrlicht.h>
-#include <libguile.h>
-
-template <typename TParent>
-SCM
-gui_IGUIEnvironment_addButton (SCM gui_environment,
- SCM rectangle,
- SCM parent,
- SCM id,
- SCM text,
- SCM tooltiptext);
-
-template <typename TParent>
-SCM
-gui_IGUIEnvironment_addEditBox (SCM gui_environment,
- SCM text,
- SCM rectangle,
- SCM border,
- SCM parent,
- SCM id);
-
-template <typename TParent>
-SCM
-gui_IGUIEnvironment_addImage (SCM gui_environment,
- SCM image,
- SCM position,
- SCM use_alpha_channel,
- SCM parent,
- SCM id,
- SCM text);
-
-template <typename TParent>
-SCM
-gui_IGUIEnvironment_addListBox (SCM gui_environment,
- SCM rectangle,
- SCM parent,
- SCM id,
- SCM draw_background);
-
-template <typename TParent>
-SCM
-gui_IGUIEnvironment_addScrollBar (SCM gui_environment,
- SCM horizontal,
- SCM rectangle,
- SCM parent,
- SCM id);
-
-template <typename TParent>
-SCM
-gui_IGUIEnvironment_addStaticText (SCM gui_environment,
- SCM text,
- SCM rectangle,
- SCM border,
- SCM word_wrap,
- SCM parent,
- SCM id,
- SCM fill_background);
-
-template <typename TParent>
-SCM
-gui_IGUIEnvironment_addWindow (SCM gui_environment,
- SCM rectangle,
- SCM modal,
- SCM text,
- SCM parent,
- SCM id);
-
-SCM
-gui_IGUIEnvironment_drawAll (SCM gui_environment);
-
-SCM
-gui_IGUIEnvironment_getBuiltInFont (SCM gui_environment);
-
-SCM
-gui_IGUIEnvironment_getFont (SCM gui_environment,
- SCM filename);
-
-SCM
-gui_IGUIEnvironment_getSkin (SCM gui_environment);
-
extern "C" {
void
init_gui_environment (void);
#ifndef __GUILE_IRRLICHT_GUI_IN_OUT_FADER_H_INCLUDED__
#define __GUILE_IRRLICHT_GUI_IN_OUT_FADER_H_INCLUDED__
-#include <irrlicht/irrlicht.h>
-#include <libguile.h>
-
-SCM
-gui_IGUIInOutFader_setColor (SCM in_out_fader,
- SCM color,
- SCM dest_color);
-
extern "C" {
void
init_gui_in_out_fader (void);
#ifndef __GUILE_IRRLICHT_GUI_LISTBOX_H_INCLUDED__
#define __GUILE_IRRLICHT_GUI_LISTBOX_H_INCLUDED__
-#include <irrlicht/irrlicht.h>
-#include <libguile.h>
-
-SCM
-gui_IGUIListBox_addItem (SCM gui_listbox,
- SCM text,
- SCM icon);
-
extern "C" {
void
init_gui_listbox (void);
#ifndef __GUILE_IRRLICHT_GUI_SCROLLBAR_H_INCLUDED__
#define __GUILE_IRRLICHT_GUI_SCROLLBAR_H_INCLUDED__
-#include <irrlicht/irrlicht.h>
-#include <libguile.h>
-
extern "C" {
void
init_gui_scrollbar (void);
#ifndef __GUILE_IRRLICHT_GUI_TOOLBAR_H_INCLUDED__
#define __GUILE_IRRLICHT_GUI_TOOLBAR_H_INCLUDED__
-#include <irrlicht/irrlicht.h>
-#include <libguile.h>
-
extern "C" {
void
init_gui_toolbar (void);
#ifndef __GUILE_IRRLICHT_GUI_H_INCLUDED__
#define __GUILE_IRRLICHT_GUI_H_INCLUDED__
-#include <irrlicht/irrlicht.h>
-#include <libguile.h>
-
extern "C" {
void
init_gui (void);
#ifndef __GUILE_IRRLICHT_H_INCLUDED__
#define __GUILE_IRRLICHT_H_INCLUDED__
-#include <irrlicht/irrlicht.h>
-#include <libguile.h>
-
extern "C" {
void
init_guile_irrlicht (void);
#define __GUILE_IRRLICHT_IO_H_INCLUDED__
extern "C" {
-
void
init_io (void);
-
}
#endif
#ifndef __GUILE_IRRLICHT_REFERENCE_COUNTED_H_INCLUDED__
#define __GUILE_IRRLICHT_REFERENCE_COUNTED_H_INCLUDED__
-#include <irrlicht/irrlicht.h>
-#include <libguile.h>
-
extern "C" {
void
init_reference_counted (void);
+++ /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_WRAPPED_H_INCLUDED__
-#define __GUILE_IRRLICHT_WRAPPED_H_INCLUDED__
-
-#include <libguile.h>
-
-#define DECLARE_WRAPPED_TYPE(TYPE, INIT, PRED, WRAP, UNWRAP) \
- void \
- INIT (void); \
- \
- SCM \
- WRAP (TYPE foreign_obj); \
- \
- TYPE \
- UNWRAP (SCM wrapped_obj); \
- \
- bool \
- PRED (SCM wrapped_obj);
-
-
-#define DEFINE_WRAPPED_TYPE(TYPE, PRINT_NAME, INIT, PRED, WRAP, UNWRAP) \
- static SCM wrapped_##INIT; \
- \
- void \
- INIT (void) \
- { \
- SCM name, slots; \
- scm_t_struct_finalize finalizer; \
- \
- name = scm_from_utf8_symbol (PRINT_NAME); \
- slots = scm_list_1 (scm_from_utf8_symbol ("data")); \
- finalizer = NULL; \
- \
- wrapped_##INIT = \
- scm_make_foreign_object_type (name, slots, finalizer); \
- } \
- \
- SCM \
- WRAP (TYPE foreign_obj) \
- { \
- return scm_make_foreign_object_1 (wrapped_##INIT, foreign_obj); \
- } \
- \
- TYPE \
- UNWRAP (SCM wrapped_obj) \
- { \
- scm_assert_foreign_object_type (wrapped_##INIT, wrapped_obj); \
- return (TYPE)scm_foreign_object_ref (wrapped_obj, 0); \
- } \
- \
- bool \
- PRED (SCM wrapped_obj) \
- { \
- return SCM_IS_A_P (wrapped_obj, wrapped_##INIT); \
- }
-
-#endif