diff options
author | David Thompson <dthompson2@worcester.edu> | 2023-09-14 09:00:13 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2023-11-08 21:35:34 -0500 |
commit | 5c6c61f5750ad0dc798ae4c3ca5d19d9b25551cc (patch) | |
tree | d9075b4bc7f717bf25f241ad7f0ef72f88d39c24 /chickadee.scm | |
parent | 084d356d75f4deb28a5dfdebe769de20a4969005 (diff) |
graphics: Factor out GL calls in (chickadee) module.
Diffstat (limited to 'chickadee.scm')
-rw-r--r-- | chickadee.scm | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/chickadee.scm b/chickadee.scm index 88928e1..0f04767 100644 --- a/chickadee.scm +++ b/chickadee.scm @@ -31,8 +31,6 @@ #:use-module (chickadee graphics gpu) #:use-module (chickadee graphics viewport) #:use-module (chickadee utils) - #:use-module (gl) - #:use-module (gl enums) #:use-module (ice-9 atomic) #:use-module (ice-9 match) #:use-module (sdl2) @@ -422,6 +420,9 @@ border is disabled, otherwise it is enabled.") (graphics-engine-gc gfx)) (define (render-sdl-opengl alpha) (graphics-engine-reset! gfx) + ;; Enable seamless cube maps. + ;; TODO: This should go somewhere else. + (set-gpu-seamless-cube-maps! (current-gpu) #t) (with-viewport (vector-ref default-viewport 0) (clear-viewport) (with-graphics-state ((projection (vector-ref default-projection 0))) @@ -445,10 +446,6 @@ border is disabled, otherwise it is enabled.") (lambda args (display "warning: could not enable vsync\n" (current-error-port)))) - ;; Turn off multisampling by default. - (gl-disable (version-1-3 multisample)) - ;; Enable seamless cube maps. - (gl-enable (version-3-2 texture-cube-map-seamless)) (sdl2:load-game-controller-mappings! (scope-datadir "gamecontrollerdb.txt")) (run-game* #:init load |