Magnum/Platform/WindowlessWglApplication.h file

Class Magnum::Platform::WindowlessWglApplication, Magnum::Platform::WindowlessWglContext, macro MAGNUM_WINDOWLESSWGLAPPLICATION_MAIN()

Namespaces

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

Classes

class Magnum::Platform::WindowlessWglContext
Windowless WGL context.
class Magnum::Platform::WindowlessWglContext::Configuration
Configuration.
class Magnum::Platform::WindowlessWglApplication
Windowless WGL application.
struct Magnum::Platform::WindowlessWglApplication::Arguments
Application arguments.

Defines

#define MAGNUM_WINDOWLESSWGLAPPLICATION_MAIN(className)
Entry point for windowless WGL application.

Define documentation

#define MAGNUM_WINDOWLESSWGLAPPLICATION_MAIN(className)

Entry point for windowless WGL application.

Parameters
className Class name

See Platform::WindowlessWglApplication 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 windowless application header is included this macro is also aliased to MAGNUM_WINDOWLESSAPPLICATION_MAIN().