Class Application

Namespace
Elegy.AppTemplate
Assembly
Elegy.AppTemplate.dll
public static class Application
Inheritance
Application
Inherited Members

Properties

IsHeadless

Is the engine running in headless/dedicated server mode?

public static bool IsHeadless { get; }

Property Value

bool

Methods

GetSeconds()

public static double GetSeconds()

Returns

double

Init(LaunchConfig, IWindowPlatform?, IApplication?)

Bootstraps all subsystems and starts the engine. Does not start the main loop.

public static bool Init(LaunchConfig config, IWindowPlatform? windowPlatform, IApplication? initialApp = null)

Parameters

config LaunchConfig
windowPlatform IWindowPlatform
initialApp IApplication

Returns

bool

InitialiseWindowAndRenderer(bool)

Does exactly what it says.

public static bool InitialiseWindowAndRenderer(bool initialiseDefaultWindow)

Parameters

initialiseDefaultWindow bool

Returns

bool

Run()

Kicks off the update loop.

public static void Run()

RunHeadless()

Kicks off the update loop without rendering nor input.

public static void RunHeadless()

Start(LaunchConfig, IWindowPlatform)

Bootstraps all subsystems and starts the engine. Also handles the main loop.

public static void Start(LaunchConfig config, IWindowPlatform windowPlatform)

Parameters

config LaunchConfig
windowPlatform IWindowPlatform

Start<T>(LaunchConfig, IWindowPlatform)

Bootstraps all subsystems and starts the engine. Also handles the main loop.

public static void Start<T>(LaunchConfig config, IWindowPlatform windowPlatform) where T : IApplication, new()

Parameters

config LaunchConfig
windowPlatform IWindowPlatform

Type Parameters

T

Update(double)

Updates the engine subsystems.

public static void Update(double deltaTime)

Parameters

deltaTime double