Search Results for

    Show / Hide Table of Contents

    Class GraphicsPresenter

    Application graphic presenter.

    Inheritance
    object
    IdentifiableObject
    DependencyObject
    AttachableObject
    Service
    UpdatableService
    GraphicsPresenter
    Implements
    IDependencyObject
    Inherited Members
    AttachableObject.AttachableStateChanged
    AttachableObject.IsEnabled
    AttachableObject.State
    AttachableObject.IsLoaded
    AttachableObject.IsAttached
    AttachableObject.IsActivated
    AttachableObject.IsStarted
    AttachableObject.IsDestroyed
    AttachableObject.Destroy()
    DependencyObject.Dependencies
    DependencyObject.OnDependencyRemoved
    IdentifiableObject.Id
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.Framework.Services
    Assembly: Evergine.Framework.dll
    Syntax
    public sealed class GraphicsPresenter : UpdatableService, IDependencyObject

    Constructors

    GraphicsPresenter()

    Initializes a new instance of the GraphicsPresenter class.

    Declaration
    public GraphicsPresenter()

    Fields

    Displays

    Gets the displays of the application.

    Declaration
    public Dictionary<int, Display> Displays
    Field Value
    Type Description
    Dictionary<int, Display>

    Properties

    CopyCommandQueue

    Gets the Copy Command queue.

    Declaration
    public CommandQueue CopyCommandQueue { get; }
    Property Value
    Type Description
    CommandQueue

    FocusedDisplay

    Gets or sets the current focused display.

    Declaration
    public Display FocusedDisplay { get; set; }
    Property Value
    Type Description
    Display

    GraphicsCommandQueue

    Gets the Graphics Command queue.

    Declaration
    public CommandQueue GraphicsCommandQueue { get; }
    Property Value
    Type Description
    CommandQueue

    Methods

    AddDisplay(string, Display)

    Add new display.

    Declaration
    public int AddDisplay(string tag, Display display)
    Parameters
    Type Name Description
    string tag

    The tag to reference the display.

    Display display

    New display.

    Returns
    Type Description
    int

    Returns the display id assigned to this display.

    OnAttached()

    Invoked when the object is attached to the system.

    Declaration
    protected override bool OnAttached()
    Returns
    Type Description
    bool

    True if all is OK.

    Overrides
    Service.OnAttached()

    OnDetach()

    Invoked when the object is detached.

    Declaration
    protected override void OnDetach()
    Overrides
    Service.OnDetach()

    Prepare()

    Prepare all displays to be drawn.

    Declaration
    public void Prepare()

    Present()

    Presents all active displays in the application.

    Declaration
    public void Present()

    RemoveDisplay(int)

    Remove display by id.

    Declaration
    public void RemoveDisplay(int id)
    Parameters
    Type Name Description
    int id

    Display id.

    RemoveDisplay(string)

    Remove display by tag.

    Declaration
    public void RemoveDisplay(string tag)
    Parameters
    Type Name Description
    string tag

    The display tag.

    TryGetDisplay(int, out Display)

    Gets the Display associated with the specified display index.

    Declaration
    public bool TryGetDisplay(int displayId, out Display display)
    Parameters
    Type Name Description
    int displayId

    Display id.

    Display display

    return Display.

    Returns
    Type Description
    bool

    True if the display exists; otherwise, false.

    TryGetDisplay(string, out Display)

    Gets the Display associated with the specified display index.

    Declaration
    public bool TryGetDisplay(string displayTag, out Display display)
    Parameters
    Type Name Description
    string displayTag

    Display tag.

    Display display

    return Display.

    Returns
    Type Description
    bool

    True if the display exists; otherwise, false.

    TryGetDisplayId(string, out int)

    Gets the display id by its tag.

    Declaration
    public bool TryGetDisplayId(string displayTag, out int displayId)
    Parameters
    Type Name Description
    string displayTag

    The display tag.

    int displayId

    The display Id.

    Returns
    Type Description
    bool

    True if exist a display with this tag.

    Update(TimeSpan)

    Updates this instance.

    Declaration
    public override void Update(TimeSpan gameTime)
    Parameters
    Type Name Description
    TimeSpan gameTime

    The elapsed game time since the last update.

    Overrides
    UpdatableService.Update(TimeSpan)

    Events

    OnPresented

    Event fired when all displays has been presented.

    Declaration
    public event EventHandler OnPresented
    Event Type
    Type Description
    EventHandler

    Implements

    IDependencyObject

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX