Magnum/Platform/GlutApplication.h file

Class Magnum::Platform::GlutApplication, macro MAGNUM_GLUTAPPLICATION_MAIN()

Contents

Namespaces

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

Classes

class Magnum::Platform::GlutApplication deprecated
GLUT application.
struct Magnum::Platform::GlutApplication::Arguments
Application arguments.
class Magnum::Platform::GlutApplication::GLConfiguration
OpenGL context configuration.
class Magnum::Platform::GlutApplication::Configuration
Configuration.
class Magnum::Platform::GlutApplication::ViewportEvent
Viewport event.
class Magnum::Platform::GlutApplication::InputEvent
Base for input events.
class Magnum::Platform::GlutApplication::KeyEvent
Key event.
class Magnum::Platform::GlutApplication::MouseEvent
Mouse event.
class Magnum::Platform::GlutApplication::MouseMoveEvent
Mouse move event.

Defines

#define MAGNUM_GLUTAPPLICATION_MAIN(className) deprecated
Entry point for GLUT-based applications.

Define documentation

#define MAGNUM_GLUTAPPLICATION_MAIN(className)

Entry point for GLUT-based applications.

Parameters
className Class name

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