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
Methods
GetSeconds()
public static double GetSeconds()
Returns
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
configLaunchConfigwindowPlatformIWindowPlatforminitialAppIApplication
Returns
InitialiseWindowAndRenderer(bool)
Does exactly what it says.
public static bool InitialiseWindowAndRenderer(bool initialiseDefaultWindow)
Parameters
initialiseDefaultWindowbool
Returns
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
configLaunchConfigwindowPlatformIWindowPlatform
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
configLaunchConfigwindowPlatformIWindowPlatform
Type Parameters
T
Update(double)
Updates the engine subsystems.
public static void Update(double deltaTime)
Parameters
deltaTimedouble