diff options
author | David Thompson <dthompson2@worcester.edu> | 2014-10-25 11:34:20 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2014-10-25 11:34:20 -0400 |
commit | 0098ddd37f5d1fa2621fbc5f803d23afb7bcb289 (patch) | |
tree | d72f8d39da42108decddc77dbe4a6b2afe3ea86b | |
parent | c486ff8e897fda698ee1d2efcb982eb30ffca24a (diff) |
render: Add utils module.
* sly/render/utils.scm: New file.
* Makefile.am (SOURCES): Add it.
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | sly/render/utils.scm | 29 |
2 files changed, 30 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index d84c5ac..8d020d0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -53,6 +53,7 @@ SOURCES = \ sly/transition.scm \ sly/window.scm \ sly/joystick.scm \ + sly/render/utils.scm \ sly/render/vertex-array.scm \ sly/render/renderer.scm \ $(WRAPPER_SOURCES) diff --git a/sly/render/utils.scm b/sly/render/utils.scm new file mode 100644 index 0000000..a0748b2 --- /dev/null +++ b/sly/render/utils.scm @@ -0,0 +1,29 @@ +;;; Sly +;;; Copyright (C) 2014 David Thompson <davet@gnu.org> +;;; +;;; Sly is free software: you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation, either version 3 of the License, or +;;; (at your option) any later version. +;;; +;;; Sly 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 General Public License +;;; along with this program. If not, see +;;; <http://www.gnu.org/licenses/>. + +;;; Commentary: +;; +;; Rendering utilities. +;; +;;; Code: + +(define-module (sly render utils) + #:use-module (oop goops) + #:export (draw)) + +;; Generic method for rendering objects. +(define-generic draw) |