Magnum/Platform/Sdl2Application.h file

Class Magnum::Platform::Sdl2Application, macro MAGNUM_SDL2APPLICATION_MAIN()

Contents

Namespaces

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

Classes

class Magnum::Platform::Sdl2Application
SDL2 application.
struct Magnum::Platform::Sdl2Application::Arguments
Application arguments.
class Magnum::Platform::Sdl2Application::GLConfiguration
OpenGL context configuration.
class Magnum::Platform::Sdl2Application::Configuration
Configuration.
class Magnum::Platform::Sdl2Application::ViewportEvent
Viewport event.
class Magnum::Platform::Sdl2Application::InputEvent
Base for input events.
class Magnum::Platform::Sdl2Application::KeyEvent
Key event.
class Magnum::Platform::Sdl2Application::MouseEvent
Mouse event.
class Magnum::Platform::Sdl2Application::MouseMoveEvent
Mouse move event.
class Magnum::Platform::Sdl2Application::MouseScrollEvent
Mouse scroll event.
class Magnum::Platform::Sdl2Application::MultiGestureEvent
Multi gesture event.
class Magnum::Platform::Sdl2Application::TextInputEvent
Text input event.
class Magnum::Platform::Sdl2Application::TextEditingEvent
Text editing event.

Defines

#define MAGNUM_SDL2APPLICATION_MAIN(className)
Entry point for SDL2-based applications.

Define documentation

#define MAGNUM_SDL2APPLICATION_MAIN(className)

Entry point for SDL2-based applications.

Parameters
className Class name

See Platform::Sdl2Application for usage information. This macro abstracts out platform-specific entry point code and is equivalent to the following on all supported platforms except Windows RT, 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().