aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/01-bitmap-display.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/01-bitmap-display.lisp')
-rw-r--r--examples/01-bitmap-display.lisp20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/01-bitmap-display.lisp b/examples/01-bitmap-display.lisp
new file mode 100644
index 0000000..fa743fa
--- /dev/null
+++ b/examples/01-bitmap-display.lisp
@@ -0,0 +1,20 @@
+;;; 01-bitmap-display.lisp
+
+(defpackage #:ww.examples/1
+ (:use #:cl)
+ (:export #:start))
+
+(in-package :ww.examples/1)
+
+(defclass bitmap-display (ww::application ) ())
+
+(defmethod ww::boot ((app bitmap-display))
+ (ww::add-unit
+ app
+ (make-instance 'ww::bitmap
+ :texture (ww::get-asset "Fezghoul.png"))))
+
+
+(defun start ()
+ (ww::start (make-instance 'bitmap-display
+ :asset-root #P"~/projects/wheelwork/examples/")))