Magnum/GL/Context.h file

Class Magnum::GL::Context, Magnum::GL::Extension, macro MAGNUM_ASSERT_GL_VERSION_SUPPORTED(), MAGNUM_ASSERT_GL_EXTENSION_SUPPORTED()

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::GL
OpenGL wrapping layer.

Classes

class Magnum::GL::Extension
Run-time information about OpenGL extension.
class Magnum::GL::Context
Magnum OpenGL context.
class Magnum::GL::Context::Configuration new in Git master
Configuration.

Functions

auto operator<<(Debug& debug, Context::Flag value) -> Debug&
Debug output operator.
auto operator<<(Debug& debug, Context::Flags value) -> Debug&
Debug output operator.
auto operator<<(Debug& debug, Context::DetectedDriver value) -> Debug&
Debug output operator.
auto operator<<(Debug& debug, Context::DetectedDrivers value) -> Debug&
Debug output operator.

Defines

#define MAGNUM_ASSERT_GL_VERSION_SUPPORTED(version)
Assert that given OpenGL version is supported.
#define MAGNUM_ASSERT_GL_EXTENSION_SUPPORTED(extension)
Assert that given OpenGL extension is supported.

Define documentation

#define MAGNUM_ASSERT_GL_VERSION_SUPPORTED(version)

Assert that given OpenGL version is supported.

Parameters
version Version

Useful for initial checks on availability of required features.

By default, if assertion fails, an message is printed to error output and the application aborts. If CORRADE_NO_ASSERT is defined, this macro does nothing. Example usage:

MAGNUM_ASSERT_GL_VERSION_SUPPORTED(GL::Version::GL330);

#define MAGNUM_ASSERT_GL_EXTENSION_SUPPORTED(extension)

Assert that given OpenGL extension is supported.

Parameters
extension Extension name (from the Extensions namespace)

Useful for initial checks on availability of required features.

By default, if assertion fails, an message is printed to error output and the application aborts. If CORRADE_NO_ASSERT is defined, this macro does nothing. Example usage:

MAGNUM_ASSERT_GL_EXTENSION_SUPPORTED(GL::Extensions::ARB::geometry_shader4);