Switch from static gl generator to struct
Merge pull request #249 from tomaka/struct-gl

Switch from static gl generator to struct