func Extensions() []string { var ub *gl.Ubyte if extensions == nil { ub = gl.GetString(gl.EXTENSIONS) extensions = stringutil.Split(gl.GoStringUb(ub), " ") } return extensions }
func Initialize() { fmt.Println("INFO: OpenGL Version", gl.GetString(gl.VERSION)) // Render things which are closer on top. gl.Init() gl.Enable(gl.DEPTH_TEST) gl.ClearColor(0.0, 0.0, 0.0, 0.0) CreateShaders() CreateVOB() }