gctx 0.1.0

static global context
Documentation

gctx

static global context

usage

add to Cargo.toml

[dependencies]
gctx = "0.1.0"

example

cli

to run frog.lua

$ dirty frog.lua

(looks for main.lua if no argument) to export

$ dirty export

(entry has to be main.lua when exported)

notes & caveats

  • app::init() also overrides default panic behavior (also display messages to screen if window is initiated)
  • module contexts are handled internally
  • currently using OpenGL 2.1 for better compatibility, but might support multiple backends in the future
  • on Windows, audio::init() must be called before window::init(), for some reason it crashes if tried to get audio device after SDL initialization
  • api tries to be simple and personal instead of ideomatic

fun fact

DIRTY is short for Dangerous Ichthyopolist Reincarnates Tropical Yeti