Skip to content

Instantly share code, notes, and snippets.

@FlyingJester
Last active March 12, 2017 06:51
Show Gist options
  • Save FlyingJester/58b4499e773d179a924f737083ce6c7f to your computer and use it in GitHub Desktop.
Save FlyingJester/58b4499e773d179a924f737083ce6c7f to your computer and use it in GitHub Desktop.
Do not lose this
config.load(Config, !IO),
( Config ^ config.gl_version = window.gl_version(2, _) ->
thread.mvar.init(TimeMVar, !IO),
thread.mvar.init(SceneMVar, !IO),
thread.mvar.put(SceneMVar, gl2_scene, !IO),
thread.mvar.put(TimeMVar, 0, !IO),
Renderer = render(gl2_render.gl2_render, SceneMVar),
Engine = engine(gl2_render.gl2_render, TimeMVar, SceneMVar),
window.run_threaded(
;
true % Pass.
).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment