Table of Contents

Class DesktopPlatform

Namespace
SimulationFramework.Desktop
Assembly
SimulationFramework.Desktop.dll

Implements a simulation environment which runs the simulation in a window.

public class DesktopPlatform : ISimulationPlatform, ISimulationComponent, IDisposable
Inheritance
DesktopPlatform
Implements
Inherited Members

Constructors

DesktopPlatform(WindowOptions?)

public DesktopPlatform(WindowOptions? windowOptions = null)

Parameters

windowOptions WindowOptions?

Properties

Window

public IWindow Window { get; }

Property Value

IWindow

Methods

CreateGraphicsProvider()

protected virtual IGraphicsProvider CreateGraphicsProvider()

Returns

IGraphicsProvider

CreateImGuiProvider()

protected virtual ISimulationComponent CreateImGuiProvider()

Returns

ISimulationComponent

CreateSimulationController()

protected virtual ISimulationController CreateSimulationController()

Returns

ISimulationController

CreateTimeProvider()

protected virtual ITimeProvider CreateTimeProvider()

Returns

ITimeProvider

CreateWindowProvider()

protected virtual IWindowProvider CreateWindowProvider()

Returns

IWindowProvider

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public virtual void Dispose()

Initialize(MessageDispatcher)

Initializes the component. This is called once after the component is added to a simulation.

public virtual void Initialize(MessageDispatcher dispatcher)

Parameters

dispatcher MessageDispatcher

The simulation's MessageDispatcher. This can be used to listen for messages to be called back at a later frame.

Register()

public static void Register()

RegisterInputProviders()

protected virtual void RegisterInputProviders()