Class Display
This class represents a display.
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class Display : DisposableObject
Constructors
Display(Surface, FrameBuffer)
Initializes a new instance of the Display class.
Declaration
public Display(Surface surface, FrameBuffer frameBuffer)
Parameters
Type | Name | Description |
---|---|---|
Surface | surface | The surface instance. |
FrameBuffer | frameBuffer | The FrameBuffer instance. |
Display(Surface, SwapChain)
Initializes a new instance of the Display class.
Declaration
public Display(Surface surface, SwapChain swapChain)
Parameters
Type | Name | Description |
---|---|---|
Surface | surface | The surface instance. |
SwapChain | swapChain | The SwapChain instance. |
Fields
FrameBuffer
The display frame buffer.
Declaration
public FrameBuffer FrameBuffer
Field Value
Type | Description |
---|---|
FrameBuffer |
Surface
The surface associated with this display.
Declaration
public readonly Surface Surface
Field Value
Type | Description |
---|---|
Surface |
SwapChain
The swapChain instance.
Declaration
public SwapChain SwapChain
Field Value
Type | Description |
---|---|
SwapChain |
isStereo
This is a stereo display.
Declaration
protected bool isStereo
Field Value
Type | Description |
---|---|
bool |
Properties
HasFocus
Gets a value indicating whether this display has focus.
Declaration
public bool HasFocus { get; }
Property Value
Type | Description |
---|---|
bool |
Height
Gets the display height.
Declaration
public uint Height { get; }
Property Value
Type | Description |
---|---|
uint |
IsStereo
Gets a value indicating whether this display is stereo.
Declaration
public bool IsStereo { get; }
Property Value
Type | Description |
---|---|
bool |
IsVisible
Gets or sets a value indicating whether this display is visible.
Declaration
public virtual bool IsVisible { get; set; }
Property Value
Type | Description |
---|---|
bool |
KeyboardDispatcher
Gets the keyboard dispatcher.
Declaration
public KeyboardDispatcher KeyboardDispatcher { get; }
Property Value
Type | Description |
---|---|
KeyboardDispatcher |
MouseDispatcher
Gets the mouse dispatcher.
Declaration
public MouseDispatcher MouseDispatcher { get; }
Property Value
Type | Description |
---|---|
MouseDispatcher |
TouchDispatcher
Gets the touch dispatcher.
Declaration
public PointerDispatcher TouchDispatcher { get; }
Property Value
Type | Description |
---|---|
PointerDispatcher |
Width
Gets the display width.
Declaration
public uint Width { get; }
Property Value
Type | Description |
---|---|
uint |
Methods
BeforePresent()
Method executed in a step before the presentation of the display.
Declaration
public virtual void BeforePresent()
Destroy()
Destroys all resources of this instance.
Declaration
protected override void Destroy()
Overrides
DispatchInputEvents()
Dispatches input events.
Declaration
public void DispatchInputEvents()
InitFrame()
Initializes the frame for rendering.
Declaration
public virtual void InitFrame()
Prepare()
Presents a rendered image to the user.
Declaration
public virtual void Prepare()
Present()
Presents a rendered image to the user.
Declaration
public virtual void Present()
UpdateFrameBuffer(FrameBuffer)
Updates the framebuffer.
Declaration
public void UpdateFrameBuffer(FrameBuffer frameBuffer)
Parameters
Type | Name | Description |
---|---|---|
FrameBuffer | frameBuffer | The framebuffer. |
Events
DisplayDisposed
Event fired when the display is disposed.
Declaration
public event EventHandler DisplayDisposed
Event Type
Type | Description |
---|---|
EventHandler |
DisplayFrameBufferChanged
Event fired when the display framebuffer is changed.
Declaration
public event EventHandler<EventArgs> DisplayFrameBufferChanged
Event Type
Type | Description |
---|---|
EventHandler<EventArgs> |
DisplaySizeChanged
Event fires when the display size changes.
Declaration
public event EventHandler<SizeEventArgs> DisplaySizeChanged
Event Type
Type | Description |
---|---|
EventHandler<SizeEventArgs> |
SurfaceInfoChanged
Event fired when the display surface is changed.
Declaration
public event EventHandler<SurfaceInfo> SurfaceInfoChanged
Event Type
Type | Description |
---|---|
EventHandler<SurfaceInfo> |