X-Git-Url: https://git.jsancho.org/?p=guile-irrlicht.git;a=blobdiff_plain;f=src%2Fbox3d.cpp;fp=src%2Fbox3d.cpp;h=0000000000000000000000000000000000000000;hp=e254bc23cf2372a08efc8f18773e8302787e53b7;hb=d392bfc335713faab44275624d8fd78139880975;hpb=3bb58c2b45af12c0f9c9eac648e67ac6fa90e104 diff --git a/src/box3d.cpp b/src/box3d.cpp deleted file mode 100644 index e254bc2..0000000 --- a/src/box3d.cpp +++ /dev/null @@ -1,60 +0,0 @@ -/* guile-irrlicht --- GNU Guile bindings for Irrlicht Engine - - Copyright (C) 2020 Javier Sancho - - 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 - . -*/ - -#include -#include -#include "box3d.h" -#include "gsubr.h" -#include "vector3d.h" -#include "wrapped.h" - -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; -} - -SCM -aabbox3d_make () -{ - core::aabbox3df* aabbox = new core::aabbox3df (); - return scm_from_irr_pointer ("", (void*) aabbox); -} - -SCM -aabbox3d_reset (SCM box3d, - SCM init_value) -{ - ((core::aabbox3df*)scm_to_irr_pointer (box3d))->reset (scm_to_vector3df (init_value)); - return SCM_UNSPECIFIED; -} - -void -init_box3d (void) -{ - DEFINE_GSUBR ("aabbox3d_addInternalPoint", 2, 0, 0, aabbox3d_addInternalPoint); - DEFINE_GSUBR ("aabbox3d_make", 0, 0, 0, aabbox3d_make); - DEFINE_GSUBR ("aabbox3d_reset", 2, 0, 0, aabbox3d_reset); -}