-extern "C" {
-
- void
- init_box3d (void)
- {
- init_box3d_type ();
- DEFINE_GSUBR ("box3d-add-internal-point!", 2, 0, 0, box3d_add_internal_point);
- DEFINE_GSUBR ("box3d-reset!", 2, 0, 0, box3d_reset);
- DEFINE_GSUBR ("make-box3d", 0, 0, 0, make_box3d);
- }
-
- DEFINE_WRAPPED_TYPE (irr::core::aabbox3df*, "box3d",
- init_box3d_type, box3d_p,
- wrap_box3d, unwrap_box3d);
-
- SCM
- box3d_add_internal_point (SCM box3d,
- SCM point)
- {
- irr::core::aabbox3df* aabbox = unwrap_box3d (box3d);
- aabbox->addInternalPoint (scm_to_vector3df (point));
- return SCM_UNSPECIFIED;
- }
+using namespace irr;
+
+SCM
+aabbox3d_addInternalPoint (SCM box3d,
+ SCM point)
+{
+ ((core::aabbox3df*)scm_to_irr_pointer (box3d))->addInternalPoint (scm_to_vector3df (point));
+ return SCM_UNSPECIFIED;
+}