Magnum/Platform/EmscriptenApplication.h file new in 2019.10

Class Magnum::Platform::EmscriptenApplication, macro MAGNUM_EMSCRIPTENAPPLICATION_MAIN()

Namespaces

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

Classes

class Magnum::Platform::EmscriptenApplication new in 2019.10
Emscripten application.
struct Magnum::Platform::EmscriptenApplication::Arguments
Application arguments.
class Magnum::Platform::EmscriptenApplication::GLConfiguration
WebGL context configuration.
class Magnum::Platform::EmscriptenApplication::Configuration
Configuration.
class Magnum::Platform::EmscriptenApplication::ViewportEvent
Viewport event.
class Magnum::Platform::EmscriptenApplication::InputEvent
Base for input events.
class Magnum::Platform::EmscriptenApplication::PointerEvent new in Git master
Pointer event.
class Magnum::Platform::EmscriptenApplication::MouseEvent deprecated in Git master
Mouse event.
class Magnum::Platform::EmscriptenApplication::PointerMoveEvent new in Git master
Pointer move event.
class Magnum::Platform::EmscriptenApplication::MouseMoveEvent deprecated in Git master
Mouse move event.
class Magnum::Platform::EmscriptenApplication::ScrollEvent new in Git master
Scroll event.
class Magnum::Platform::EmscriptenApplication::MouseScrollEvent deprecated in Git master
Mouse scroll event.
class Magnum::Platform::EmscriptenApplication::KeyEvent
Key event.
class Magnum::Platform::EmscriptenApplication::TextInputEvent
Text input event.

Defines

#define MAGNUM_EMSCRIPTENAPPLICATION_MAIN(className)
Entry point for Emscripten applications.

Define documentation

#define MAGNUM_EMSCRIPTENAPPLICATION_MAIN(className)

Entry point for Emscripten applications.

Parameters
className Class name

See Platform::EmscriptenApplication for usage information. This macro abstracts out platform-specific entry point code. See Platform-specific application support for more information.

When no other application header is included this macro is also aliased to MAGNUM_APPLICATION_MAIN().

Compared to for example MAGNUM_SDL2APPLICATION_MAIN(), the macro instantiates the application instance as a global variable instead of a local variable inside main(). This is in order to support the idle-efficient main loop, as otherwise the local scope would end before any event callback has a chance to happen.