Magnum/Platform/GlxApplication.h file

Class Magnum::Platform::GlxApplication, macro MAGNUM_GLXAPPLICATION_MAIN()

Namespaces

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

Classes

class Magnum::Platform::GlxApplication
GLX application.

Defines

#define MAGNUM_GLXAPPLICATION_MAIN(className)
Entry point for GLX-based applications.

Define documentation

#define MAGNUM_GLXAPPLICATION_MAIN(className)

Entry point for GLX-based applications.

Parameters
className Class name

See Platform::GlxApplication 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().