Class Application
Class that represents an Evergine application.
Inherited Members
Namespace: Evergine.Framework
Assembly: Evergine.Framework.dll
Syntax
public class Application : DisposableObject
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 whether this application is running on a device with low profile capabilities. |
Properties
Container
Gets the dependency 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 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()
Destroys all resources of this instance.
Declaration
protected override void Destroy()
Overrides
DrawFrame(TimeSpan)
Forces a draw for the next 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 specified platform. This method acts as a bridge between the application and the 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 overwrite it.
Declaration
protected virtual void RegisterSceneSourceFactories()
UpdateFrame(TimeSpan)
Forces an update for the next game cycle.
Declaration
public virtual void UpdateFrame(TimeSpan gameTime)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | gameTime | The game time. |