]> git.jsancho.org Git - c-irrlicht.git/blobdiff - src/CIrrlicht.cpp
LGPLv3 license
[c-irrlicht.git] / src / CIrrlicht.cpp
index 22464ec2a65ca5b0a076add8045a052fc3604e24..7ef83978a0541fe3e7a2c250a3c75c871cf14f03 100644 (file)
@@ -1,38 +1,31 @@
-/* c-irrlicht -- C bindings for Irrlicht Engine
+/* c-irrlicht --- C bindings for Irrlicht Engine
 
-  Copyright (C) 2019 Javier Sancho <jsf@jsancho.org>
+   Copyright (C) 2019 Javier Sancho <jsf@jsancho.org>
 
-  This software is provided 'as-is', without any express or implied
-  warranty.  In no event will the authors be held liable for any damages
-  arising from the use of this software.
+   This file is part of c-irrlicht.
 
-  Permission is granted to anyone to use this software for any purpose,
-  including commercial applications, and to alter it and redistribute it
-  freely, subject to the following restrictions:
+   c-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.
 
-  1. The origin of this software must not be misrepresented; you must not
-     claim that you wrote the original software. If you use this software
-     in a product, an acknowledgment in the product documentation would be
-     appreciated but is not required.
-  2. Altered source versions must be plainly marked as such, and must not be
-     misrepresented as being the original software.
-  3. This notice may not be removed or altered from any source distribution.
+   c-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.
 
-  Please note that the Irrlicht Engine is based in part on the work of the
-  Independent JPEG Group, the zlib and the libPng. This means that if you use
-  the Irrlicht Engine in your product, you must acknowledge somewhere in your
-  documentation that you've used the IJG code. It would also be nice to mention
-  that you use the Irrlicht Engine, the zlib and libPng. See the README files
-  in the jpeglib, the zlib and libPng for further informations.
+   You should have received a copy of the GNU Lesser General Public
+   License along with guile-irrlicht.  If not, see
+   <http://www.gnu.org/licenses/>.
 */
 
 #include <irrlicht/irrlicht.h>
 #include "cirrlicht.h"
 
 extern "C" {
-  int irr_createDevice()
+  int irr_createDevice(irr_video_E_DRIVER_TYPE deviceType)
   {
-    irr::createDevice();
+    irr::createDevice((irr::video::E_DRIVER_TYPE)deviceType);
     return 0;
   }
 }