Added infinite-loop.scm
This commit is contained in:
parent
88d0d2a058
commit
97f5c9b02a
|
@ -8,15 +8,17 @@
|
|||
(sdl2 events)
|
||||
(sdl2 input keyboard))
|
||||
|
||||
(define (draw ren)
|
||||
(set-renderer-draw-color! ren 255 255 255 255)
|
||||
(define (draw renderer)
|
||||
(set-renderer-draw-color! renderer 255 255 255 255)
|
||||
|
||||
(let* ((surface (load-image "guile.png"))
|
||||
(texture (surface->texture ren surface)))
|
||||
(texture (surface->texture renderer surface)))
|
||||
|
||||
(do ((event (poll-event) (poll-event)))
|
||||
((eq? '#t (quit-event? event)))
|
||||
(clear-renderer ren)
|
||||
(render-copy ren texture)
|
||||
(present-renderer ren))))
|
||||
(clear-renderer renderer)
|
||||
(render-copy renderer texture)
|
||||
(present-renderer renderer))))
|
||||
|
||||
(sdl-init)
|
||||
|
||||
|
|
Loading…
Reference in New Issue