#include <libguile.h>
#include "position2d.h"
-extern "C" {
-
- SCM
- scm_from_position2d_s32 (irr::core::position2d<irr::s32> position2d)
- {
- return scm_list_2 (scm_from_int32 (position2d.X),
- scm_from_int32 (position2d.Y));
- }
-
- irr::core::position2d<irr::f32>
- scm_to_position2d_f32 (SCM position2d)
- {
- return irr::core::position2d<irr::f32>
- (scm_to_double (scm_car (position2d)),
- scm_to_double (scm_cadr (position2d)));
- }
-
- irr::core::position2d<irr::s32>
- scm_to_position2d_s32 (SCM position2d)
- {
- return irr::core::position2d<irr::s32>
- (scm_to_int32 (scm_car (position2d)),
- scm_to_int32 (scm_cadr (position2d)));
- }
+using namespace irr;
+
+
+SCM
+scm_from_position2d_s32 (core::position2d<s32> position2d)
+{
+ return scm_list_2 (scm_from_int32 (position2d.X),
+ scm_from_int32 (position2d.Y));
+}
+
+core::position2d<f32>
+scm_to_position2d_f32 (SCM position2d)
+{
+ return core::position2d<f32>
+ (scm_to_double (scm_car (position2d)),
+ scm_to_double (scm_cadr (position2d)));
+}
+
+core::position2d<s32>
+scm_to_position2d_s32 (SCM position2d)
+{
+ return core::position2d<s32>
+ (scm_to_int32 (scm_car (position2d)),
+ scm_to_int32 (scm_cadr (position2d)));
}
#include <irrlicht/irrlicht.h>
#include <libguile.h>
-extern "C" {
+using namespace irr;
- SCM
- scm_from_position2d_s32 (irr::core::position2d<irr::s32> position2d);
+SCM
+scm_from_position2d_s32 (core::position2d<s32> position2d);
- irr::core::position2d<irr::f32>
- scm_to_position2d_f32 (SCM position2d);
+core::position2d<f32>
+scm_to_position2d_f32 (SCM position2d);
- irr::core::position2d<irr::s32>
- scm_to_position2d_s32 (SCM position2d);
-
-}
+core::position2d<s32>
+scm_to_position2d_s32 (SCM position2d);
#endif