gtk/gdk/macos
Benjamin Otte 430b6f8fb1 gdk: Add GdkDisplay::init_gl vfunc
The vfunc is called to initialize GL and it returns a "base" context
that GDK then uses as the context all others are shared with. So the GL
context share tree now looks like:

+ context from init_gl
  - context1
  - context2
  ...

So this is a flat tree now, the complexity is gone.

The only caveat is that backends now need to create a GL context when
initializing GL so some refactoring was needed.

Two new functions have been added:

* gdk_display_prepare_gl()
  This is public API and can be used to ensure that GL has been
  initialized or if not, retrieve an error to display (or debug-print).
* gdk_display_get_gl_context()
  This is a private function to retrieve the base context from
  init_gl(). It replaces gdk_surface_get_shared_data_context().
2021-07-22 16:23:56 +02:00
..
edgesnapping.c
edgesnapping.h gdk: Drop GdkPoint from the api 2020-10-29 14:23:46 -04:00
gdkdisplaylinksource.c gdk: Clean up docs syntax 2021-05-22 17:25:26 -04:00
gdkdisplaylinksource.h
gdkmacos.h
GdkMacosBaseView.c macos: move setNeedsDisplay helper to GdkMacosCairoView 2020-10-29 10:57:02 -07:00
GdkMacosBaseView.h
gdkmacoscairocontext-private.h
gdkmacoscairocontext.c macos: fix rendering artifacts with hover transitions 2020-11-17 18:20:55 -08:00
GdkMacosCairoSubview.c macos: add more aggressive clip to transparent subview 2020-10-29 19:41:21 -07:00
GdkMacosCairoSubview.h macos: add more aggressive clip to transparent subview 2020-10-29 19:41:21 -07:00
GdkMacosCairoView.c macos: add more aggressive clip to transparent subview 2020-10-29 19:41:21 -07:00
GdkMacosCairoView.h
gdkmacosclipboard-private.h macos: make pasteboard usage reusable 2021-06-17 17:19:19 -07:00
gdkmacosclipboard.c macos: make pasteboard usage reusable 2021-06-17 17:19:19 -07:00
gdkmacoscursor-private.h
gdkmacoscursor.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
gdkmacosdevice-private.h macos: Stop using _gdk_device_query_state 2020-08-26 17:56:41 -04:00
gdkmacosdevice.c macos: track grab serial like other backends 2020-12-02 11:34:31 -08:00
gdkmacosdevice.h
gdkmacosdisplay-private.h macos: implement GdkDrop for macOS 2021-06-17 17:26:42 -07:00
gdkmacosdisplay-settings.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
gdkmacosdisplay-translate.c macos: check for GdkMacosBaseView before using as such 2021-06-17 17:18:19 -07:00
gdkmacosdisplay.c gdk: Add GdkDisplay::init_gl vfunc 2021-07-22 16:23:56 +02:00
gdkmacosdisplay.h
gdkmacosdrag-private.h
gdkmacosdrag.c macos: move drag motion to GdkMacosDrag 2021-06-17 13:24:39 -07:00
gdkmacosdragsurface-private.h macos: move drag motion to GdkMacosDrag 2021-06-17 13:24:39 -07:00
gdkmacosdragsurface.c macos: move drag motion to GdkMacosDrag 2021-06-17 13:24:39 -07:00
gdkmacosdrop-private.h macos: implement GdkDrop for macOS 2021-06-17 17:26:42 -07:00
gdkmacosdrop.c macos: implement GdkDrop for macOS 2021-06-17 17:26:42 -07:00
gdkmacoseventsource-private.h
gdkmacoseventsource.c macos: fix various compiler warnings 2020-11-18 20:16:37 -08:00
gdkmacosglcontext-private.h gdk: Add GdkDisplay::init_gl vfunc 2021-07-22 16:23:56 +02:00
gdkmacosglcontext.c gdk: Add GdkDisplay::init_gl vfunc 2021-07-22 16:23:56 +02:00
gdkmacosglcontext.h
GdkMacosGLView.c macos: set opengl view as opaque in opaque windows 2020-12-06 20:14:52 -08:00
GdkMacosGLView.h macos: implement GL context 2020-10-29 10:57:02 -07:00
gdkmacoskeymap-private.h macos: add key equivalent helper 2020-10-09 20:03:52 -07:00
gdkmacoskeymap.c macos: add key equivalent helper 2020-10-09 20:03:52 -07:00
gdkmacoskeymap.h
gdkmacosmonitor-private.h
gdkmacosmonitor.c Documentation fixes 2021-05-20 19:17:49 -04:00
gdkmacosmonitor.h macos: track various changes in GDK 2020-10-09 20:02:18 -07:00
gdkmacospopupsurface-private.h
gdkmacospopupsurface.c macos: Apply popup shadow width 2021-02-14 10:52:33 -05:00
gdkmacosseat-private.h Support stylus devices on macos 2021-01-11 11:41:00 +01:00
gdkmacosseat.c macos: Fix a compiler warning 2021-06-17 17:14:14 -07:00
gdkmacosseat.h Support stylus devices on macos 2021-01-11 11:41:00 +01:00
gdkmacossurface-private.h macos: make OpenGL context opaque when possible 2021-02-19 13:23:26 -08:00
gdkmacossurface.c gdk: Add GdkDisplay::init_gl vfunc 2021-07-22 16:23:56 +02:00
gdkmacossurface.h
gdkmacostoplevelsurface-private.h macos: fix resizing of resizable windows on macOS 2021-02-19 15:43:49 -08:00
gdkmacostoplevelsurface.c macos: fix resizing of resizable windows on macOS 2021-02-19 15:43:49 -08:00
gdkmacosutils-private.h macos: handle point conversion on older macOS 2021-01-05 13:52:11 -08:00
GdkMacosWindow.c macos: implement GdkDrop for macOS 2021-06-17 17:26:42 -07:00
GdkMacosWindow.h
meson.build macos: implement GdkDrop for macOS 2021-06-17 17:26:42 -07:00