openclonk/src/graphics
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
..
Bitmap256.cpp Don't ZeroMem non-POD types 2015-11-14 16:43:19 +01:00
Bitmap256.h Don't ZeroMem non-POD types 2015-11-14 16:43:19 +01:00
C4Draw.cpp Stop pretending we support 16 bit color 2016-02-02 00:00:23 +01:00
C4Draw.h Stop pretending we support 16 bit color 2016-02-02 00:00:23 +01:00
C4DrawGL.cpp GL: Switch from GLEW to Epoxy 2016-02-06 16:50:47 +01:00
C4DrawGL.h GL: Switch from GLEW to Epoxy 2016-02-06 16:50:47 +01:00
C4DrawGLCtx.cpp GL: Switch from GLEW to Epoxy 2016-02-06 16:50:47 +01:00
C4DrawGLMac.h mac: Zoom in/out main menu commands also work in game mode, call Viewports. methods then 2014-02-16 10:01:14 +01:00
C4DrawGLMac.mm GL: Switch from GLEW to Epoxy 2016-02-06 16:50:47 +01:00
C4DrawMeshGL.cpp Fix assertion failure when rendering mesh with degenerate transform 2016-01-31 21:51:50 +01:00
C4DrawT.cpp Stop pretending we support 16 bit color 2016-02-02 00:00:23 +01:00
C4DrawT.h Stop pretending we support 16 bit color 2016-02-02 00:00:23 +01:00
C4Facet.cpp Drop Min, Max, Swap for std::min, std::max, std::swap 2015-11-15 13:53:01 +01:00
C4Facet.h Optimize drawing of tiled surfaces 2015-09-12 16:11:50 -04:00
C4FacetEx.cpp Remove unused IsRenderTarget and MaxTextureSize C4Surface options 2016-01-17 11:37:17 -08:00
C4FacetEx.h Keep parallax objects fixed on full map screenshots (#1042) 2015-10-17 17:38:50 -04:00
C4FontLoader.cpp Remove unused IsRenderTarget and MaxTextureSize C4Surface options 2016-01-17 11:37:17 -08:00
C4FontLoader.h Remove arbitrary inline forward declarations of StdBuf (and derivatives) 2015-12-29 21:42:46 +01:00
C4GraphicsResource.cpp Remove a bunch of dead code, mostly player control related 2016-02-03 03:17:23 +01:00
C4GraphicsResource.h Remove a bunch of dead code, mostly player control related 2016-02-03 03:17:23 +01:00
C4Shader.cpp GL: Deduplicate the check for glObjectLabel 2016-01-29 18:37:32 +01:00
C4Shader.h GL: Switch from GLEW to Epoxy 2016-02-06 16:50:47 +01:00
C4Surface.cpp Stop pretending we support 16 bit color 2016-02-02 00:00:23 +01:00
C4Surface.h Stop pretending we support 16 bit color 2016-02-02 00:00:23 +01:00
C4SurfaceLoaders.cpp Stop pretending we support 16 bit color 2016-02-02 00:00:23 +01:00
CSurface8.cpp Don't ZeroMem non-POD types 2015-11-14 16:43:19 +01:00
CSurface8.h Introduce background map 2015-08-04 21:21:23 -04:00
StdPNG.cpp Use sched_yield instead of pthread_yield in png save wait loop [cfkoch] 2016-01-17 23:15:34 -05:00
StdPNG.h Save screenshots in background thread (#998, #1104). 2015-09-29 20:48:34 -04:00