Class BillboardInfo
Class that hold the billboard information to be rendered.
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class BillboardInfo : RenderObjectInfo, IDisposable
Constructors
BillboardInfo()
Initializes a new instance of the BillboardInfo class.
Declaration
public BillboardInfo()
Fields
BillboardOrderBias
The sprite order bias.
Declaration
public int BillboardOrderBias
Field Value
Type | Description |
---|---|
int |
BillboardType
The billboard type.
Declaration
public BillboardType BillboardType
Field Value
Type | Description |
---|---|
BillboardType |
FlipMode
The flip mode.
Declaration
public FlipMode FlipMode
Field Value
Type | Description |
---|---|
FlipMode |
Origin
The sprite origin.
Declaration
public Vector2 Origin
Field Value
Type | Description |
---|---|
Vector2 |
RenderLayer
The render layer.
Declaration
public RenderLayerDescription RenderLayer
Field Value
Type | Description |
---|---|
RenderLayerDescription |
Rotation
The rotation of the billboard.
Declaration
public float Rotation
Field Value
Type | Description |
---|---|
float |
Sampler
Gets the texture sampler.
Declaration
public SamplerState Sampler
Field Value
Type | Description |
---|---|
SamplerState |
Texture
The billboard texture.
Declaration
public Texture Texture
Field Value
Type | Description |
---|---|
Texture |
TintColor
The tint color.
Declaration
public Color TintColor
Field Value
Type | Description |
---|---|
Color |
Properties
DrawableType
Gets the drawable type.
Declaration
public override DrawableType DrawableType { get; }
Property Value
Type | Description |
---|---|
DrawableType |
Overrides
InputLayoutID
Gets the InputLayout ID.
Declaration
public override uint InputLayoutID { get; }
Property Value
Type | Description |
---|---|
uint |
Overrides
InputLayouts
Gets the input layout.
Declaration
public override InputLayouts InputLayouts { get; }
Property Value
Type | Description |
---|---|
InputLayouts |
Overrides
IsReady
Gets a value indicating whether this instance is ready to be rendered.
Declaration
public override bool IsReady { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Material
Gets the material.
Declaration
public override Material Material { get; }
Property Value
Type | Description |
---|---|
Material |
Overrides
MaterialID
Gets the material ID.
Declaration
public override uint MaterialID { get; }
Property Value
Type | Description |
---|---|
uint |
Overrides
OrderBias
Gets the order bias.
Declaration
public override int OrderBias { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
PrimitiveTopology
Gets the primitive topology.
Declaration
public override PrimitiveTopology PrimitiveTopology { get; }
Property Value
Type | Description |
---|---|
PrimitiveTopology |
Overrides
RenderStateOrder
Gets the order of the Render State.
Declaration
public override int RenderStateOrder { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
SortMode
Gets the Sorting mode.
Declaration
public override SortMode SortMode { get; }
Property Value
Type | Description |
---|---|
SortMode |
Overrides
Methods
Collect(DrawContext)
Prepare this object with the specified draw context.
Declaration
public override void Collect(DrawContext drawContext)
Parameters
Type | Name | Description |
---|---|---|
DrawContext | drawContext | The draw context. |
Overrides
Destroy()
Destroy all resources of this instance.
Declaration
protected override void Destroy()
Overrides
RefreshBoundingBox()
Refresh the bounding box.
Declaration
protected override void RefreshBoundingBox()