Add OpenGL Support for the GDK Windows Backend

Desktop / GNOME / GTK - Chun-wei Fan [src.gnome.org] - 17 December 2014 02:07 UTC

This adds support for OpenGL to the GDK Windows backend using the WGL API calls, which enables programs that uses the GTK+ GLArea widgets to work on Windows as well.



This also adds a simple utility function to query for the version of OpenGL that is supported by the Windows system, like the one provided by the X11 backend.



Many thanks to Alex (and Emmanuele, who started the OpenGL integration in GTK+) who offered advice and help along the way, as well as the X11 and Wayland backend for this work to refer to and to model upon.



https://bugzilla.gnome.org/show_bug.cgi?id=740795

536fa88 Add OpenGL Support for the GDK Windows Backend

gdk/win32/Makefile.am | 5 +

gdk/win32/gdkdisplay-win32.c | 14 +-

gdk/win32/gdkdisplay-win32.h | 47 +++

gdk/win32/gdkglcontext-win32.c | 655 ++++++++++++++++++++++++++++++++++++++++

gdk/win32/gdkglcontext-win32.h | 84 ++++++

gdk/win32/gdkwin32.h | 1 +

gdk/win32/gdkwin32glcontext.h | 49 +++

gdk/win32/gdkwindow-win32.c | 24 +-

8 files changed, 861 insertions(+), 18 deletions(-)

Upstream: git.gnome.org