X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2Ftexture.cpp;fp=src%2Ftexture.cpp;h=5dba6550f55e0c3637fb7243f0e4f3419b70b251;hb=fb9011bf9160be890e0a6b98fcff9ed95ae0bd77;hp=0000000000000000000000000000000000000000;hpb=8ff6816b98af584ca7670ad964d5f13f84e18044;p=guile-irrlicht.git diff --git a/src/texture.cpp b/src/texture.cpp new file mode 100644 index 0000000..5dba655 --- /dev/null +++ b/src/texture.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 "texture.h" + +extern "C" { + + void + init_texture (void) + { + init_texture_type (); + } + + DEFINE_WRAPPED_TYPE (irr::video::ITexture*, "texture", + init_texture_type, texture_p, + wrap_texture, unwrap_texture); + +}