Magnum/Platform/GlfwApplication.h file

Class Magnum::Platform::GlfwApplication, macro MAGNUM_GLFWAPPLICATION_MAIN()

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::Platform
Platform-specific application and context creation.

Classes

class Magnum::Platform::GlfwApplication
GLFW application.
struct Magnum::Platform::GlfwApplication::Arguments
Application arguments.
class Magnum::Platform::GlfwApplication::GLConfiguration
OpenGL context configuration.
class Magnum::Platform::GlfwApplication::Configuration
Configuration.
class Magnum::Platform::GlfwApplication::ExitEvent
Exit event.
class Magnum::Platform::GlfwApplication::ViewportEvent
Viewport event.
class Magnum::Platform::GlfwApplication::InputEvent
Base for input events.
class Magnum::Platform::GlfwApplication::KeyEvent
Key event.
class Magnum::Platform::GlfwApplication::MouseEvent
Mouse event.
class Magnum::Platform::GlfwApplication::MouseMoveEvent
Mouse move event.
class Magnum::Platform::GlfwApplication::MouseScrollEvent
Mouse scroll event.
class Magnum::Platform::GlfwApplication::TextInputEvent
Text input event.

Defines

#define MAGNUM_GLFWAPPLICATION_MAIN(className)
Entry point for GLFW-based applications.

Define documentation

#define MAGNUM_GLFWAPPLICATION_MAIN(className)

Entry point for GLFW-based applications.

Parameters
className Class name

See Platform::GlfwApplication for usage information. This macro abstracts out platform-specific entry point code and is equivalent to the following, see Platform-specific application support for more information.

int main(int argc, char** argv) {
    className app({argc, argv});
    return app.exec();
}

When no other application header is included this macro is also aliased to MAGNUM_APPLICATION_MAIN().