]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
useless code
authorJavier Sancho <jsf@jsancho.org>
Sun, 10 May 2020 11:46:45 +0000 (13:46 +0200)
committerJavier Sancho <jsf@jsancho.org>
Sun, 10 May 2020 11:46:45 +0000 (13:46 +0200)
18 files changed:
src/animated-mesh-scene-node.h
src/animated-mesh.h
src/box3d.h
src/color.cpp
src/cursor-control.h
src/device.h
src/event-receiver.h
src/file-system.h
src/gui-environment.h
src/gui-in-out-fader.h
src/gui-listbox.h
src/gui-scrollbar.h
src/gui-toolbar.h
src/gui.h
src/guile-irrlicht.h
src/io.h
src/reference-counted.h
src/wrapped.h [deleted file]

index 4cd5c7b5d7b5c5b487d86d6a32e1cf10132b63ae..ead8ba026963eef53497c3c3fa1cee93bd2363cb 100644 (file)
 #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);
index 2795d557ab676bc4e1c946640470aba45b9e342e..f44df1d0067b0553c639935b997443d23de04ba7 100644 (file)
 #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);
index 4bb2731dcc72ffc893477086b47c1ff5f124fe9b..ce91f676cf1e647aa6545ebaad7bbe837bce5784 100644 (file)
 #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);
index d21704d5070dec8790e8e68b1e08bc6734da256e..6d836d3d4f40138eb220db3d068aa72a29404405 100644 (file)
 #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 ()),
@@ -34,10 +37,10 @@ scm_from_color (irr::video::SColor color)
 }
 
 
-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)),
index dba60649981fd253392abb321d5df08b585e4038..73e3537cedef1570f34e639ece2c8dceb12a8a8e 100644 (file)
 #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);
index 94f63c99e6b37cde78c57baef52eddf18327ff1f..6c6a1d9c9500499d668649b8ef3591ed2827dc55 100644 (file)
 #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);
index 516c7b57dd5cc6c41ff72c51e52187c4009268a2..510f6dc1dc63645aedc06cf31ca082ad116d71d9 100644 (file)
 #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);
index 774dbcf5b6b777b76f1f74e18cb22ed367201b4b..b05df205c039ed3c80744c9252a5c51b4c80bf53 100644 (file)
 #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);
index 064cb5df6b3b1ab0c83b2cdb6b5a701c6dd40e60..95b927745360dd415ba731b1165c73eb80468ea2 100644 (file)
 #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);
index 74c05e1fd994352299bccd64b2455556397b63bd..5f0db12306475f9b64f9127bcceedc23908ed2bf 100644 (file)
 #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);
index f4e1ff73783a4e0637bc6f132e4aa99218c47c8c..4eb425f4906bdfb19b9893598913eec8a5bce0e8 100644 (file)
 #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);
index 5d49a8339622366642a4697d8a3818910e0f0e08..421d8f3c42bf5f8c7dcedcd02d797c3a1f24e7c0 100644 (file)
@@ -22,9 +22,6 @@
 #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);
index e40a96fd532976efd09d961a1781e548b2aabef1..537f9ce78032356a969e9804a298da0d18a59870 100644 (file)
@@ -22,9 +22,6 @@
 #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);
index 13b280ee0f2d2689efb65afa2010df2f7095ea9d..b1a3beac0d148fb475e41b0431cafe83dae99376 100644 (file)
--- a/src/gui.h
+++ b/src/gui.h
@@ -22,9 +22,6 @@
 #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);
index e6276dda52d88be88d75eb25b0d97a46860e0eed..f3ba2495baba2844608f512fb3281d8784158f86 100644 (file)
@@ -22,9 +22,6 @@
 #ifndef __GUILE_IRRLICHT_H_INCLUDED__
 #define __GUILE_IRRLICHT_H_INCLUDED__
 
-#include <irrlicht/irrlicht.h>
-#include <libguile.h>
-
 extern "C" {
   void
   init_guile_irrlicht (void);
index 83f31b694e155e7e9d76d857d006796f27d03318..d854d6f6ed4cf61970eab79903bed836db782974 100644 (file)
--- a/src/io.h
+++ b/src/io.h
 #define __GUILE_IRRLICHT_IO_H_INCLUDED__
 
 extern "C" {
-
   void
   init_io (void);
-
 }
 
 #endif
index 13d84373b689a73993c5c6a3074e403d4b086a9f..47cf799ca2d1712a67c963bddb95453eb5bd7b5f 100644 (file)
@@ -22,9 +22,6 @@
 #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);
diff --git a/src/wrapped.h b/src/wrapped.h
deleted file mode 100644 (file)
index daaaa25..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-/* 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