X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2Frect.cpp;fp=src%2Frect.cpp;h=9da526bd5f241905e6af318265a630278271f17a;hb=56de371557044d3b7acc14cb94cc46641be906d9;hp=0000000000000000000000000000000000000000;hpb=03d4e13abc392abec3ef9cb6a97d83a5ae722ca8;p=guile-irrlicht.git diff --git a/src/rect.cpp b/src/rect.cpp new file mode 100644 index 0000000..9da526b --- /dev/null +++ b/src/rect.cpp @@ -0,0 +1,38 @@ +/* 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 "rect.h" + +extern "C" { + + irr::core::rect + scm_to_rect_s32 (SCM rect) + { + return irr::core::rect + (scm_to_int32 (scm_car (rect)), + scm_to_int32 (scm_cadr (rect)), + scm_to_int32 (scm_caddr (rect)), + scm_to_int32 (scm_cadddr (rect))); + } + +}