summaryrefslogtreecommitdiff
path: root/examples/blank-window.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2015-12-12 02:54:59 -0500
committerDavid Thompson <dthompson2@worcester.edu>2015-12-12 02:54:59 -0500
commite0c2201c2fb811b498eba347ea9389621d92226a (patch)
treea480bd0b1fd7001fb72f4858d2eebe436753ef68 /examples/blank-window.scm
parent313e28f1f8aaa1c9b56ae0ddbda979b790237690 (diff)
Add blank window example.
* examples/blank-window.scm: New file.
Diffstat (limited to 'examples/blank-window.scm')
-rw-r--r--examples/blank-window.scm10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/blank-window.scm b/examples/blank-window.scm
new file mode 100644
index 0000000..41c5ead
--- /dev/null
+++ b/examples/blank-window.scm
@@ -0,0 +1,10 @@
+(use-modules (sdl2)
+ (sdl2 video))
+
+(sdl-init)
+
+(define window (make-sdl-window))
+
+(sleep 2)
+(close-sdl-window! window)
+(sdl-quit)