Class BackgroundImage
This class renders a texture to the background.
Inheritance
BackgroundImage
Implements
Inherited Members
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
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
OnDeactivated()
Invoked when the object is deactivated.
Declaration
protected override void OnDeactivated()
Overrides
OnDetached()
Invoked when the object is detached.
Declaration
protected override void OnDetached()
Overrides
RefreshDimensions()
Refreshes the dimensions of the background texture to render.
Declaration
protected void RefreshDimensions()