(init-video-mode)
(SDL_WM_SetCaption ,title "")
(init-frame-time)
+ (refresh-running-mobs)
(process-events)
(do () ((quit?))
(glClear (+ GL_COLOR_BUFFER_BIT GL_DEPTH_BUFFER_BIT))
+ (logic-mobs)
+ (render-mobs)
(glLoadIdentity)
,@code
(SDL_GL_SwapBuffers)
(delay-frame)
(init-frame-time)
+ (refresh-running-mobs)
(process-events)
(setq running nil))))
(free-all-resources)
; (quit-audio)
(quit-video-mode)
-; (quit-all-procs)
+ (quit-all-mobs)
; (clear-events)
; (quit-events)
(quit-sdl))