glGreg source code