aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/01-bitmap-display.lisp
diff options
context:
space:
mode:
authorColin Okay <colin@cicadas.surf>2022-06-21 10:29:13 -0500
committerColin Okay <colin@cicadas.surf>2022-06-21 10:29:13 -0500
commitb956a766d7fd0ffa6cabe18fa0eb2822f4a0ffc0 (patch)
tree983e957e1c2ea8c32c931ced4ef4a2a6002d7234 /examples/01-bitmap-display.lisp
parent49ac2ad797e63957f0058ef4ad6e15dda482175d (diff)
[add] example; [add] basic stuff to run example
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/")))