nCine::MainApplication class

Main entry point and handler for standard (desktop) applications.

Base classes

class Application
Base class for main entry points of nCine applications.

Public static functions

static auto Run(CreateAppEventHandlerDelegate createAppEventHandler, int argc, NativeArgument* argv) -> int
Entry point method to be called in the main()/wWinMain() function.

Public functions

void Quit() override
Raises the quit flag.
auto EnablePlayStationExtendedSupport(bool enable) -> bool override
Switches PS4 and PS5 controllers to use extended protocol which enables rumble and other features.
auto GetUserName() -> String override
Returns the username of the logged-in user.
auto OpenUrl(StringView url) -> bool override
Opens the specified URL in a default web browser.

Friends

auto theApplication() -> Application&
Returns application instance.