hasGlSupport

fnbool hasGlSupport() @safe nothrow

Checks if OpenGL support is available.

This is a compile-time and runtime check. At compile time, checks if the GL bindings are present. At runtime, checks if a display is available (since GL requires a display context on most platforms).

Returns

true if OpenGL support appears to be available