Class Application
Inheritance
System.Object
Application
Implements
System.IDisposable
Assembly: AxEngine.dll
Syntax
public class Application : IDisposable
Fields
|
Improve this Doc
View Source
DefaultKeyBindings
Declaration
public bool DefaultKeyBindings
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RenderCounter
Declaration
public EventCounter RenderCounter
Field Value
|
Improve this Doc
View Source
UpdateCounter
Declaration
public EventCounter UpdateCounter
Field Value
Properties
|
Improve this Doc
View Source
Camera
Declaration
public Camera Camera { get; }
Property Value
|
Improve this Doc
View Source
Closing
Declaration
public bool Closing { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Current
Declaration
public static Application Current { get; }
Property Value
|
Improve this Doc
View Source
CurrentMousePosition
Declaration
public Vector2 CurrentMousePosition { get; set; }
Property Value
Type |
Description |
OpenToolkit.Mathematics.Vector2 |
|
|
Improve this Doc
View Source
CurrentMouseWorldPosition
Declaration
public Vector3 CurrentMouseWorldPosition { get; }
Property Value
Type |
Description |
OpenToolkit.Mathematics.Vector3 |
|
|
Improve this Doc
View Source
CurrentMouseWorldPositionIsValid
Declaration
public bool CurrentMouseWorldPositionIsValid { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Disposed
Declaration
protected bool Disposed { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Initialized
Declaration
protected bool Initialized { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsFocused
Declaration
public bool IsFocused { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsMultiThreaded
Declaration
public bool IsMultiThreaded { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
KeyboardState
Declaration
protected KeyboardState KeyboardState { get; }
Property Value
Type |
Description |
OpenToolkit.Windowing.Common.Input.KeyboardState |
|
|
Improve this Doc
View Source
RenderContext
Declaration
public RenderContext RenderContext { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public int RenderFrameNumber { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
RenderFrequency
Declaration
public double RenderFrequency { get; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
RenderingEnabled
Declaration
protected bool RenderingEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
SceneContext
Declaration
public SceneContext SceneContext { get; }
Property Value
|
Improve this Doc
View Source
ScreenSize
Declaration
public Vector2i ScreenSize { get; }
Property Value
Type |
Description |
OpenToolkit.Mathematics.Vector2i |
|
|
Improve this Doc
View Source
Stopped
Declaration
public bool Stopped { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public int UpdateFrameNumber { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
UpdateFrequency
Declaration
public double UpdateFrequency { get; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
WindowBorder
Declaration
public WindowBorder WindowBorder { get; }
Property Value
Type |
Description |
OpenToolkit.Windowing.Common.WindowBorder |
|
|
Improve this Doc
View Source
WindowContext
Declaration
public WindowContext WindowContext { get; }
Property Value
|
Improve this Doc
View Source
WindowLocation
Declaration
public Vector2i WindowLocation { get; set; }
Property Value
Type |
Description |
OpenToolkit.Mathematics.Vector2i |
|
Methods
|
Improve this Doc
View Source
AfterRenderFrame()
Declaration
protected virtual void AfterRenderFrame()
|
Improve this Doc
View Source
AfterUpdateFrame()
Declaration
protected virtual void AfterUpdateFrame()
|
Improve this Doc
View Source
BeforeRenderFrame()
Declaration
protected virtual void BeforeRenderFrame()
|
Improve this Doc
View Source
BeforeUpdateFrame()
Declaration
protected virtual void BeforeUpdateFrame()
|
Improve this Doc
View Source
DispatchRender(Action)
Declaration
public void DispatchRender(Action task)
Parameters
Type |
Name |
Description |
System.Action |
task |
|
|
Improve this Doc
View Source
DispatchUpdater(Action)
Declaration
public void DispatchUpdater(Action task)
Parameters
Type |
Name |
Description |
System.Action |
task |
|
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
|
Improve this Doc
View Source
OnClosed()
Declaration
protected virtual void OnClosed()
|
Improve this Doc
View Source
OnClosing(CancelEventArgs)
Declaration
protected virtual void OnClosing(CancelEventArgs e)
Parameters
Type |
Name |
Description |
System.ComponentModel.CancelEventArgs |
e |
|
|
Improve this Doc
View Source
Declaration
protected virtual void OnKeyDown(KeyboardKeyEventArgs e)
Parameters
Type |
Name |
Description |
OpenToolkit.Windowing.Common.KeyboardKeyEventArgs |
e |
|
|
Improve this Doc
View Source
OnLoad()
Declaration
protected virtual void OnLoad()
|
Improve this Doc
View Source
Declaration
protected virtual void OnMouseDown(MouseButtonArgs e)
Parameters
|
Improve this Doc
View Source
OnMouseMove(MouseMoveArgs)
Declaration
protected virtual void OnMouseMove(MouseMoveArgs e)
Parameters
|
Improve this Doc
View Source
Declaration
protected virtual void OnMouseUp(MouseButtonArgs e)
Parameters
|
Improve this Doc
View Source
Declaration
protected virtual void OnMouseWheel(MouseWheelEventArgs e)
Parameters
Type |
Name |
Description |
OpenToolkit.Windowing.Common.MouseWheelEventArgs |
e |
|
|
Improve this Doc
View Source
Called from the Render thread before the render pipeline is invoked.
If IsMultiThreaded is enabled, do not access the window and to not write to an SceneObject.
Declaration
protected virtual void OnRenderFrame(FrameEventArgs e)
Parameters
Type |
Name |
Description |
OpenToolkit.Windowing.Common.FrameEventArgs |
e |
|
|
Improve this Doc
View Source
OnResize(EventArgs)
Declaration
protected void OnResize(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
|
Improve this Doc
View Source
Declaration
protected void OnScreenResizeInternal(ResizeEventArgs e)
Parameters
Type |
Name |
Description |
OpenToolkit.Windowing.Common.ResizeEventArgs |
e |
|
|
Improve this Doc
View Source
OnUnload()
Declaration
protected virtual void OnUnload()
|
Improve this Doc
View Source
Called from the Update thread. Here you can update the world, for example positions, or execute game logic.
If IsMultiThreaded is enabled, do not access any of the IRenderObject or any other internal renderer related objects.
Declaration
protected virtual void OnUpdateFrame(FrameEventArgs e)
Parameters
Type |
Name |
Description |
OpenToolkit.Windowing.Common.FrameEventArgs |
e |
|
|
Improve this Doc
View Source
Declaration
protected Vector3? ScreenPositionToWorldPosition(Vector2 normalizedScreenCoordinates)
Parameters
Type |
Name |
Description |
OpenToolkit.Mathematics.Vector2 |
normalizedScreenCoordinates |
|
Returns
Type |
Description |
System.Nullable<OpenToolkit.Mathematics.Vector3> |
|
|
Improve this Doc
View Source
SetConfig(ApplicationConfig)
Declaration
public void SetConfig(ApplicationConfig config)
Parameters
|
Improve this Doc
View Source
SetupScene()
Declaration
protected virtual void SetupScene()
|
Improve this Doc
View Source
SignalShutdown()
Declaration
protected void SignalShutdown()
|
Improve this Doc
View Source
Start()
Declaration
|
Improve this Doc
View Source
Start(ApplicationConfig)
Declaration
public void Start(ApplicationConfig config)
Parameters
|
Improve this Doc
View Source
Stop()
Declaration
public virtual void Stop()
|
Improve this Doc
View Source
Declaration
public Vector3 UnProject(Vector2 mouse, float z)
Parameters
Type |
Name |
Description |
OpenToolkit.Mathematics.Vector2 |
mouse |
|
System.Single |
z |
|
Returns
Type |
Description |
OpenToolkit.Mathematics.Vector3 |
|
Events
|
Improve this Doc
View Source
AfterApplicationInitialized
Declaration
public event AfterApplicationInitializedDelegate AfterApplicationInitialized
Event Type
Implements
System.IDisposable