openclonk/src/editor
Günther Brammer d4634526fd GL: Switch from GLEW to Epoxy
Epoxy automatically fetches the extension functions on demand, including
the GLX context creation functions. This means that you can't test the
function pointers for NULL anymore, because they're always set to a
resolver function until the first call. Instead, you have to check for the
availability of an extension by the extension's name. Thanks to Isilkor for
catching these.

On windows, epoxy invalidates all extension function pointers when the
GL context changes. This means we need to have an active context at all
times we call an extension function (like wglGetPixelFormatAttribivARB)
or else the code will jump to an invalid pointer. On the other hand, we do
not need to make it reinitialize the pointers ourselves.

Epoxy automatically uses an alias for a function if the requested name is
not available, like glDebugMessageCallbackARB instead of
glDebugMessageCallback. It also does not have the problem with varying
parameter types for that function. So switch to it while removing
GLDEBUGPROCARB_USERPARAM_IS_CONST.
2016-02-06 16:50:47 +01:00
..
C4Console.cpp Update the SDL port to SDL2 2016-02-06 16:48:21 +01:00
C4Console.h Editor: Add most recently entered script lines to dropdown list. 2015-09-27 15:28:17 -04:00
C4ConsoleCocoa.mm GL: Switch from GLEW to Epoxy 2016-02-06 16:50:47 +01:00
C4ConsoleGTK.cpp gtk: Hide usages of X11 behind #ifdef GDK_WINDOWING_X11 2016-01-23 22:02:51 +01:00
C4ConsoleGTKDlg.cpp Update copyright notices 2013-12-23 13:03:19 +01:00
C4ConsoleGTKDlg.h Rename WITH_DEVELOPER_MODE to USE_GTK 2016-01-23 20:36:33 +01:00
C4ConsoleGUI.h Win32 editor: Allow resizing of main console window #1601 2016-01-16 21:01:11 -05:00
C4ConsoleGUICommon.h Fix ModeBack initialization on editor startup. 2015-09-17 22:25:46 -04:00
C4ConsoleWin32.cpp win32: Rename C4Window::hRenderWindow to renderwnd to match GTK+ 2016-01-23 22:02:52 +01:00
C4EditCursor.cpp Rename WITH_DEVELOPER_MODE to USE_GTK 2016-01-23 20:36:33 +01:00
C4EditCursor.h Rename WITH_DEVELOPER_MODE to USE_GTK 2016-01-23 20:36:33 +01:00
C4EditorWindowController.h Update copyright notices 2013-12-23 13:03:19 +01:00
C4EditorWindowController.mm GL: Switch from GLEW to Epoxy 2016-02-06 16:50:47 +01:00
C4ObjectListDlg.cpp Rename WITH_DEVELOPER_MODE to USE_GTK 2016-01-23 20:36:33 +01:00
C4ObjectListDlg.h Rename WITH_DEVELOPER_MODE to USE_GTK 2016-01-23 20:36:33 +01:00
C4ToolsDlg.cpp Select sane defaults for background material and texture in editor (#1402) 2015-09-17 20:03:53 -04:00
C4ToolsDlg.h Rename WITH_DEVELOPER_MODE to USE_GTK 2016-01-23 20:36:33 +01:00
C4ViewportWindow.cpp Rename WITH_DEVELOPER_MODE to USE_GTK 2016-01-23 20:36:33 +01:00
C4ViewportWindow.h Rename WITH_DEVELOPER_MODE to USE_GTK 2016-01-23 20:36:33 +01:00