summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@vistahigherlearning.com>2020-10-04 22:25:30 -0400
committerDavid Thompson <dthompson@vistahigherlearning.com>2020-10-04 22:25:30 -0400
commit43adba9ea35bd416f2e5b704c320c25a8b660dc4 (patch)
tree45649dd699cbce54feb952b195b8cc90c2aca162
parent7590436a514f114f139498ec5860fdc755284764 (diff)
kernel: Reorganize a bit.
-rw-r--r--starling/kernel.scm24
1 files changed, 17 insertions, 7 deletions
diff --git a/starling/kernel.scm b/starling/kernel.scm
index 3f19d5f..15e05e3 100644
--- a/starling/kernel.scm
+++ b/starling/kernel.scm
@@ -70,13 +70,10 @@
reboot-current-scene)
#:re-export (abort-game))
-(define-class <window-config> ()
- (width #:accessor window-width #:init-form 640 #:init-keyword #:width)
- (height #:accessor window-height #:init-form 480 #:init-keyword #:height)
- (title #:accessor window-title #:init-form "Lisparuga"
- #:init-keyword #:title)
- (fullscreen? #:accessor window-fullscreen? #:init-form #f
- #:init-keyword #:fullscreen?))
+
+;;;
+;;; FPS Display
+;;;
(define-class <fps-display> (<node>))
@@ -110,6 +107,19 @@
(set! (text (& fps-display canvas fps-label))
(format #f "~1,1f" fps)))
+
+;;;
+;;; Kernel
+;;;
+
+(define-class <window-config> ()
+ (width #:accessor window-width #:init-form 640 #:init-keyword #:width)
+ (height #:accessor window-height #:init-form 480 #:init-keyword #:height)
+ (title #:accessor window-title #:init-form "Lisparuga"
+ #:init-keyword #:title)
+ (fullscreen? #:accessor window-fullscreen? #:init-form #f
+ #:init-keyword #:fullscreen?))
+
(define-class <kernel> (<scene-mux>)
(name #:accessor name #:init-form "lisparuga-kernel"
#:init-keyword #:name)