[WIP] Add static generator

Close #163
I'll do this when cleaning up the generators' code. This is not the weirdest code in gl-rs :p