Search Results for

    Show / Hide Table of Contents

    Class BackgroundImage

    This class renders a texture to the background.

    Inheritance
    object
    IdentifiableObject
    DependencyObject
    AttachableObject
    PrefabInstanceObject
    Component
    BackgroundImage
    Implements
    IDependencyObject
    Inherited Members
    Component.Owner
    Component.Managers
    Component.ShouldBeActivated
    Component.Clone()
    Component.Attach(Entity)
    Component.OnLoaded()
    Component.Start()
    Component.OnDestroy()
    PrefabInstanceObject.PrefabSource
    PrefabInstanceObject.RefreshPrefab(Prefab)
    PrefabInstanceObject.PrefabElementId
    PrefabInstanceObject.IsPrefabInstance
    PrefabInstanceObject.IsMissingPrefabSource
    AttachableObject.AttachableStateChanged
    AttachableObject.IsEnabled
    AttachableObject.State
    AttachableObject.IsLoaded
    AttachableObject.IsAttached
    AttachableObject.IsActivated
    AttachableObject.IsStarted
    AttachableObject.IsDestroyed
    AttachableObject.Destroy()
    AttachableObject.DependencyBroken()
    DependencyObject.Dependencies
    DependencyObject.OnDependencyRemoved
    IdentifiableObject.Id
    IdentifiableObject.IdHasChanged(Guid)
    Namespace: Evergine.Components.Graphics3D
    Assembly: Evergine.Components.dll
    Syntax
    public class BackgroundImage : Component, IDependencyObject

    Properties

    Layer

    Gets or sets the layer used to render the background.

    Declaration
    public RenderLayerDescription Layer { get; set; }
    Property Value
    Type Description
    RenderLayerDescription

    OrderBias

    Gets or sets the order bias.

    Declaration
    public int OrderBias { get; set; }
    Property Value
    Type Description
    int

    Sampler

    Gets or sets the background texture.

    Declaration
    public SamplerState Sampler { get; set; }
    Property Value
    Type Description
    SamplerState

    Scale

    Gets or sets the stretch mode of the background texture.

    Declaration
    public Vector2 Scale { get; set; }
    Property Value
    Type Description
    Vector2

    SliceIndex

    Gets or sets the stretch mode of the background texture.

    Declaration
    public float SliceIndex { get; set; }
    Property Value
    Type Description
    float

    Stretch

    Gets or sets the stretch mode of the background texture.

    Declaration
    public BackgroundImage.StretchType Stretch { get; set; }
    Property Value
    Type Description
    BackgroundImage.StretchType

    TargetDisplay

    Gets or sets the target display.

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

    Texture

    Gets or sets the background texture.

    Declaration
    public Texture Texture { get; set; }
    Property Value
    Type Description
    Texture

    Methods

    OnActivated()

    Invoked when the object is activated once it is attached.

    Declaration
    protected override void OnActivated()
    Overrides
    Component.OnActivated()

    OnAttached()

    Invoked when the object is attached to the system.

    Declaration
    protected override bool OnAttached()
    Returns
    Type Description
    bool

    True if everything is OK.

    Overrides
    Component.OnAttached()

    OnDeactivated()

    Invoked when the object is deactivated.

    Declaration
    protected override void OnDeactivated()
    Overrides
    Component.OnDeactivated()

    OnDetach()

    Invoked when the object is detached.

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

    RefreshDimensions()

    Refreshes the dimensions of the background texture to render.

    Declaration
    protected void RefreshDimensions()

    Implements

    IDependencyObject

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX