class RenderLoop::LoopHarness
- RenderLoop::LoopHarness
- Reference
- Object
Overview
Manages the main rendering loop
TODO put rendering and state in their own threads.
Defined in:
render_loop/loop_harness.crConstructors
Instance Method Summary
-
#on_tick(&block)
Executed before each tick in the main loop.
-
#start(window : RenderLoop::Window)
Signals the loop to begin running in the window This should be ran inside your graphics context otherwise you will receive an error This is a noop if the loop is already running.
-
#stop
Signals the loop to finish up and stop, and the graphics context to shut down.
Constructor Detail
Instance Method Detail
def on_tick(&block)
#
Executed before each tick in the main loop. This allows the graphics context to perform operations if necessary.
def start(window : RenderLoop::Window)
#
Signals the loop to begin running in the window This should be ran inside your graphics context otherwise you will receive an error This is a noop if the loop is already running.