/home/igankevich/rpmbuild/BUILD/mosra-magnum-335a687/src/Magnum/GL/Context.h file

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

Contents

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::Platform
Platform-specific application and context creation.
namespace Magnum::GL
OpenGL wrapping layer.

Classes

class Magnum::GL::Extension
Run-time information about OpenGL extension.
class Magnum::GL::Context
Magnum context.

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 MAGNUM_ASSERT_VERSION_SUPPORTED(version) deprecated
Assert that given OpenGL version is supported.
#define MAGNUM_ASSERT_EXTENSION_SUPPORTED(extension) deprecated
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);

#define MAGNUM_ASSERT_VERSION_SUPPORTED(version)

Assert that given OpenGL version is supported.

#define MAGNUM_ASSERT_EXTENSION_SUPPORTED(extension)

Assert that given OpenGL extension is supported.