abstract class RenderLoop::Engine

Overview

Receives events from the main loop

Defined in:

render_loop/engine.cr

Instance Method Summary

Instance Method Detail

def flush #

Called to perform cleanup operations after the sceen has been rendered.


[View source]
def render #

Called at intervals desigated by the configured frame rate. This is used to render the scene.


[View source]
def shutdown #

Called when the application is shutting down.


[View source]
def startup #

Called when the main loop is starting up. Use this to set things up.


[View source]
abstract def tick(tick : RenderLoop::Tick, input : RenderLoop::Input) #

Called at each iteration of the main loop. This is when game state should be updated.


[View source]