src/guile-irrlicht.cpp \
src/io.cpp \
src/keycodes.cpp \
- src/keymap.cpp \
src/material.cpp \
src/material-flags.cpp \
src/material-types.cpp \
void
init_device (void)
{
- init_device_type ();
DEFINE_GSUBR ("createDevice_IEventReceiver", 7, 0, 0, createDevice<IEventReceiver*>);
DEFINE_GSUBR ("IrrlichtDevice_getCursorControl", 1, 0, 0, IrrlichtDevice_getCursorControl);
DEFINE_GSUBR ("IrrlichtDevice_getFileSystem", 1, 0, 0, IrrlichtDevice_getFileSystem);
SCM
SEvent_SKeyInput_PressedDown (SCM event)
{
- return scm_from_key_code
+ return scm_from_bool
(((SEvent*)scm_to_pointer (event))->KeyInput.PressedDown);
}
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);
}
#include <irrlicht/irrlicht.h>
#include <libguile.h>
+#include "gsubr.h"
#include "gui-toolbar.h"
#include "wchar.h"
#include "gui.h"
#include "guile-irrlicht.h"
#include "io.h"
-#include "keymap.h"
#include "material.h"
#include "reference-counted.h"
#include "scene-manager.h"
init_event_receiver ();
init_gui ();
init_io ();
- init_keymap ();
init_material ();
init_reference_counted ();
init_scene_manager ();
<http://www.gnu.org/licenses/>.
*/
+#include "file-system.h"
#include "io.h"
extern "C" {
void
init_io (void)
{
- init_file_archive ();
init_file_system ();
}
scm_to_vector3df (position),
scm_to_vector3df (rotation),
scm_to_vector3df (scale));
- return scm_from_pointer ((void*) camera, NULL);
+ return scm_from_pointer ((void*) node, NULL);
}
DEFINE_GSUBR ("scene_ISceneManager_addCustomSceneNode_ISceneNode", 10, 0, 0,
scene_ISceneManager_addCustomSceneNode<scene::ISceneNode*>);
DEFINE_GSUBR ("scene_ISceneManager_addOctreeSceneNode_ISceneNode_IAnimatedMesh", 6, 0, 0,
- scene_ISceneManager_addOctreeSceneNode<scene::ISceneNode*, scene::IAnimatedMesh*>);
+ (scene_ISceneManager_addOctreeSceneNode<scene::ISceneNode*, scene::IAnimatedMesh*>));
DEFINE_GSUBR ("scene_ISceneManager_addOctreeSceneNode_ISceneNode_IMesh", 6, 0, 0,
- scene_ISceneManager_addOctreeSceneNode<scene::ISceneNode*, scene::IMesh*>);
+ (scene_ISceneManager_addOctreeSceneNode<scene::ISceneNode*, scene::IMesh*>));
DEFINE_GSUBR ("scene_ISceneManager_addSphereSceneNode_ISceneNode", 8, 0, 0,
scene_ISceneManager_addSphereSceneNode<scene::ISceneNode*>);
DEFINE_GSUBR ("scene_ISceneManager_createFlyCircleAnimator", 7, 0, 0,
SCM animator)
{
TSceneNode node = (TSceneNode) scm_to_pointer (scene_node);
- node->addAnimator (unwrap_scene_node_animator (animator));
+ node->addAnimator ((scene::ISceneNodeAnimator*) scm_to_pointer (animator));
return SCM_UNSPECIFIED;
}
#include "matrix4.h"
#include "primitive-types.h"
#include "rect.h"
+#include "vertex3d.h"
#include "video-driver.h"