Magnum/Platform/WindowlessCglApplication.h file

Class Magnum::Platform::WindowlessCglApplication, Magnum::Platform::WindowlessCglContext, macro MAGNUM_WINDOWLESSCGLAPPLICATION_MAIN()

Contents

Namespaces

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

Classes

class Magnum::Platform::WindowlessCglContext
Windowless CGL context.
class Magnum::Platform::WindowlessCglContext::Configuration
Configuration.
class Magnum::Platform::WindowlessCglApplication
Windowless CGL application.
struct Magnum::Platform::WindowlessCglApplication::Arguments
Application arguments.

Defines

#define MAGNUM_WINDOWLESSCGLAPPLICATION_MAIN(className)
Entry point for windowless CGL application.

Define documentation

#define MAGNUM_WINDOWLESSCGLAPPLICATION_MAIN(className)

Entry point for windowless CGL application.

Parameters
className Class name

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