Class RenderObjectInfo
This class represent the information of an object to render.
Inheritance
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public abstract class RenderObjectInfo : DisposableObject, IDisposable
Constructors
RenderObjectInfo()
Initializes a new instance of the RenderObjectInfo class.
Declaration
public RenderObjectInfo()
Fields
CullingType
A value indicating how the culling system must manage this object.
Declaration
public RenderObjectInfo.CullingTypes CullingType
Field Value
Type | Description |
---|---|
RenderObjectInfo.CullingTypes |
Drawable
The drawable of the render object info.
Declaration
public Drawable Drawable
Field Value
Type | Description |
---|---|
Drawable |
IsCullingEnabled
Indicates if this render object could be culled.
Declaration
public bool IsCullingEnabled
Field Value
Type | Description |
---|---|
bool |
IsEnabled
Indicates if this render object is active.
Declaration
public bool IsEnabled
Field Value
Type | Description |
---|---|
bool |
RenderFlags
The object render flags.
Declaration
public RenderFlags RenderFlags
Field Value
Type | Description |
---|---|
RenderFlags |
Tag
A tag for this object.
Declaration
public string Tag
Field Value
Type | Description |
---|---|
string |
boundingBox
The bounding box.
Declaration
protected BoundingBox? boundingBox
Field Value
Type | Description |
---|---|
BoundingBox? |
isBoundingBoxDirty
If the bounding box is dirty.
Declaration
protected bool isBoundingBoxDirty
Field Value
Type | Description |
---|---|
bool |
isSortKeyDirty
The sort key is dirty.
Declaration
protected bool isSortKeyDirty
Field Value
Type | Description |
---|---|
bool |
Properties
BoundingBox
Gets the BoundingBox.
Declaration
public BoundingBox? BoundingBox { get; }
Property Value
Type | Description |
---|---|
BoundingBox? |
DrawableType
Gets the drawable type.
Declaration
public abstract DrawableType DrawableType { get; }
Property Value
Type | Description |
---|---|
DrawableType |
FlipWinding
Gets or sets a value indicating whether that winding need to be flipped.
Declaration
public bool FlipWinding { get; set; }
Property Value
Type | Description |
---|---|
bool |
InputLayoutID
Gets the InputLayout ID.
Declaration
public abstract uint InputLayoutID { get; }
Property Value
Type | Description |
---|---|
uint |
InputLayouts
Gets the input layout.
Declaration
public abstract InputLayouts InputLayouts { get; }
Property Value
Type | Description |
---|---|
InputLayouts |
IsActive
Gets a value indicating whether this object is activated.
Declaration
public virtual bool IsActive { get; }
Property Value
Type | Description |
---|---|
bool |
IsReady
Gets a value indicating whether this instance is ready to be rendered.
Declaration
public abstract bool IsReady { get; }
Property Value
Type | Description |
---|---|
bool |
IsSortKeyDirty
Gets a value indicating whether the sort key is dirty.
Declaration
public bool IsSortKeyDirty { get; }
Property Value
Type | Description |
---|---|
bool |
Material
Gets the material.
Declaration
public abstract Material Material { get; }
Property Value
Type | Description |
---|---|
Material |
MaterialID
Gets the material ID.
Declaration
public abstract uint MaterialID { get; }
Property Value
Type | Description |
---|---|
uint |
OrderBias
Gets the order bias.
Declaration
public abstract int OrderBias { get; }
Property Value
Type | Description |
---|---|
int |
PrimitiveTopology
Gets the primitive topology.
Declaration
public abstract PrimitiveTopology PrimitiveTopology { get; }
Property Value
Type | Description |
---|---|
PrimitiveTopology |
RenderStateOrder
Gets the order of the Render State.
Declaration
public abstract int RenderStateOrder { get; }
Property Value
Type | Description |
---|---|
int |
SortKey
Gets or sets the sort key.
Declaration
public ulong SortKey { get; set; }
Property Value
Type | Description |
---|---|
ulong |
SortMode
Gets the Sorting mode.
Declaration
public abstract SortMode SortMode { get; }
Property Value
Type | Description |
---|---|
SortMode |
Transform
Gets or sets the object transform.
Declaration
public Matrix4x4 Transform { get; set; }
Property Value
Type | Description |
---|---|
Matrix4x4 |
Methods
Collect(DrawContext)
Prepare this object with the specified draw context.
Declaration
public abstract void Collect(DrawContext drawContext)
Parameters
Type | Name | Description |
---|---|---|
DrawContext | drawContext | The draw context. |
MakeDirty()
Inticates that this object info is dirty.
Declaration
public virtual void MakeDirty()
RefreshBoundingBox()
Refresh the bounding box.
Declaration
protected abstract void RefreshBoundingBox()