X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2Fdimension2d.cpp;fp=src%2Fdimension2d.cpp;h=cad023c4f1a39c89dba1ee3d1778ec6bf6b89d17;hb=6e3f5a53745ccdc3d03a5f1fa95899adbba562b3;hp=0000000000000000000000000000000000000000;hpb=8994b42fea213a741631efbe7fd9c09c0aab7100;p=guile-irrlicht.git diff --git a/src/dimension2d.cpp b/src/dimension2d.cpp new file mode 100644 index 0000000..cad023c --- /dev/null +++ b/src/dimension2d.cpp @@ -0,0 +1,36 @@ +/* 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 "dimension2d.h" + +extern "C" { + + irr::core::dimension2d + scm_to_dimension2d_u32 (SCM dimension2d) + { + return irr::core::dimension2d + (scm_to_uint32 (scm_car (dimension2d)), + scm_to_uint32 (scm_cadr (dimension2d))); + } + +}