vydd / sketch

A Common Lisp framework for the creation of electronic art, visual design, game prototyping, game making, computer graphics, exploration of human-computer interaction, and more.
MIT License
1.39k stars 66 forks source link

Fix restart-frames -- B #137

Closed Gleefre closed 5 months ago

Gleefre commented 5 months ago

When kit.sdl2:render is called and %restart > 0 (or rather %restart-frames > 0), skip the rendering completely. This is achieved with an :around method so that existing :before and :after methods defined by kit.sdl2 that call functions sdl2:gl-make-current and sdl2:gl-swap-window are not called.