gl function calls as in open-gl tutorial