func main() { glut.Init() glut.CreateWindow("single triangle") glut.DisplayFunc(display) glut.ReshapeFunc(reshape) glut.MainLoop() }
func main() { glut.Init() glut.InitDisplayMode(glut.SINGLE | glut.RGB) glut.InitWindowSize(465, 250) glut.CreateWindow("GLUT bitmap & stroke font example") gl.ClearColor(1.0, 1.0, 1.0, 1.0) gl.Color3f(0, 0, 0) gl.LineWidth(3.0) glut.DisplayFunc(display) glut.ReshapeFunc(reshape) glut.MainLoop() }