Exemplo n.º 1
0
func createContext() *contextGL {
	runtime.LockOSThread()
	c := &contextGL{}
	C.createContext(&c.dpy, &c.ctx, &c.surf)
	gl.ContextWatcher.OnMakeCurrent(nil)
	return c
}
Exemplo n.º 2
0
func createContext() (*contextGL, error) {
	runtime.LockOSThread()
	c := &contextGL{}
	C.createContext(&c.dpy, &c.ctx, &c.surf)
	return c, nil
}
Exemplo n.º 3
0
func createContext() *contextGL {
	runtime.LockOSThread()
	c := &contextGL{}
	C.createContext(&c.dpy, &c.ctx, &c.surf)
	return c
}