Пример #1
0
func createContext() *contextGL {
	runtime.LockOSThread()
	c := &contextGL{}
	C.createContext(&c.dpy, &c.ctx, &c.surf)
	gl.ContextWatcher.OnMakeCurrent(nil)
	return c
}
Пример #2
0
func createContext() (*contextGL, error) {
	runtime.LockOSThread()
	c := &contextGL{}
	C.createContext(&c.dpy, &c.ctx, &c.surf)
	return c, nil
}
Пример #3
0
func createContext() *contextGL {
	runtime.LockOSThread()
	c := &contextGL{}
	C.createContext(&c.dpy, &c.ctx, &c.surf)
	return c
}