예제 #1
0
func Extensions() []string {
	var ub *gl.Ubyte
	if extensions == nil {
		ub = gl.GetString(gl.EXTENSIONS)
		extensions = stringutil.Split(gl.GoStringUb(ub), " ")
	}
	return extensions
}
예제 #2
0
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()
}