forked from joejulian/gio
app/internal/wm: [macOS] use NSView+NSOpenGLContext, not NSOpenGLContextView
NSOpenGLContextView couples the window manager logic tightly with OpenGL. Use generic NSViews, and attach NSOpenGLContext just like the other platforms. This change prepares for supporting GPU contexts created by clients as well as a future Metal port. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -55,6 +55,10 @@ type FrameEvent struct {
|
||||
type Callbacks interface {
|
||||
SetDriver(d Driver)
|
||||
Event(e event.Event)
|
||||
// Func runs a function during an Event. This is required for platforms
|
||||
// that require coordination between the rendering goroutine and the system
|
||||
// main thread.
|
||||
Func(f func())
|
||||
}
|
||||
|
||||
type Context interface {
|
||||
|
||||
Reference in New Issue
Block a user