Class Application
Class that represent a Evergine application.
Implements
Inherited Members
Namespace: Evergine.Framework
Assembly: Evergine.Framework.dll
Syntax
public class Application : DisposableObject, IDisposable
Constructors
Application()
Initializes a new instance of the Application class. By default, this instance is marked as active.
Declaration
public Application()
Application(bool)
Initializes a new instance of the Application class. By default, this instance is marked as active.
Declaration
public Application(bool isLowProfile)
Parameters
Type | Name | Description |
---|---|---|
bool | isLowProfile | Indicates if this application is running on a device with low profile capabilities. |
Properties
Container
Gets the dependencies container.
Declaration
public Container Container { get; }
Property Value
Type | Description |
---|---|
Container |
Current
Gets the current Evergine application.
Declaration
public static Application Current { get; }
Property Value
Type | Description |
---|---|
Application |
ExecutionMode
Gets or sets the execution mode of the application.
Declaration
public ExecutionMode ExecutionMode { get; protected set; }
Property Value
Type | Description |
---|---|
ExecutionMode |
IsEditor
Gets a value indicating whether this application is running inside the Evergine Studio.
Declaration
public bool IsEditor { get; }
Property Value
Type | Description |
---|---|
bool |
IsLowProfile
Gets or sets a value indicating whether this application is running on a device with low profile capabilities.
Declaration
public virtual bool IsLowProfile { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
Destroy()
Destroy all resources of this instance.
Declaration
protected override void Destroy()
Overrides
DrawFrame(TimeSpan)
Forces a draw for the following game cycle.
Declaration
public virtual void DrawFrame(TimeSpan gameTime)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | gameTime | The game time. |
Initialize()
Initializes the application according to the passed platform. Such method acts as the bridge between the application and the final hardware.
Declaration
public virtual void Initialize()
OnActivated()
Called when [activated].
Declaration
public virtual void OnActivated()
OnDeactivated()
Called when [deactivated].
Declaration
public virtual void OnDeactivated()
RegisterSceneSourceFactories()
Method used by Evergine.CodeScenes to inject the generated SceneSource factories. Do not override it.
Declaration
protected virtual void RegisterSceneSourceFactories()
UpdateFrame(TimeSpan)
Forces an update for the following game cycle.
Declaration
public virtual void UpdateFrame(TimeSpan gameTime)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | gameTime | The game time. |