diff options
author | Colin Okay <colin@cicadas.surf> | 2022-06-21 10:29:13 -0500 |
---|---|---|
committer | Colin Okay <colin@cicadas.surf> | 2022-06-21 10:29:13 -0500 |
commit | b956a766d7fd0ffa6cabe18fa0eb2822f4a0ffc0 (patch) | |
tree | 983e957e1c2ea8c32c931ced4ef4a2a6002d7234 /examples | |
parent | 49ac2ad797e63957f0058ef4ad6e15dda482175d (diff) |
[add] example; [add] basic stuff to run example
Diffstat (limited to 'examples')
-rw-r--r-- | examples/01-bitmap-display.lisp | 20 | ||||
-rwxr-xr-x | examples/Fezghoul.png | bin | 0 -> 3937 bytes |
2 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/"))) diff --git a/examples/Fezghoul.png b/examples/Fezghoul.png Binary files differnew file mode 100755 index 0000000..c58a95b --- /dev/null +++ b/examples/Fezghoul.png |