gctx
static global context
usage
add to Cargo.toml
[]
= "0.1.0"
example
cli
to run frog.lua
(looks for main.lua
if no argument)
to export
(entry has to be main.lua
when exported)
notes & caveats
app::init()
also overrides default panic behavior (also display messages to screen ifwindow
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 beforewindow::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