+;;; guile-irrlicht --- FFI bindings for Irrlicht Engine
+;;; Copyright (C) 2019 Javier Sancho <jsf@jsancho.org>
+;;;
+;;; 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
+;;; <http://www.gnu.org/licenses/>.
+
+
+(define-module (irrlicht rect)
+ #:use-module (system foreign)
+ #:use-module (irrlicht util)
+ #:export (rect
+ make-rect
+ rect?
+ rect->pointer
+ rect-x
+ rect-y
+ rect-x2
+ rect-y2))
+
+;; rect struct
+(define-foreign-record-type rect
+ (make-rect x y x2 y2)
+ rect?
+ rect->pointer
+ (x int32 rect-x)
+ (y int32 rect-y)
+ (x2 int32 rect-x2)
+ (y2 int32 rect-y2))