Search Results for

    Show / Hide Table of Contents

    Class LineBatch2D

    The line batch 2D.

    Inheritance
    object
    DisposableObject
    RenderObjectInfo
    LineBatch
    LineBatch2D
    Implements
    IDisposable
    Inherited Members
    LineBatch.beginDataBtr
    LineBatch.currentDataPtr
    LineBatch.vertexCount
    LineBatch.capacity
    LineBatch.ResetAfterRender
    LineBatch.LineBatchOrderBias
    LineBatch.Mesh
    LineBatch.InputLayouts
    LineBatch.PrimitiveTopology
    LineBatch.Material
    LineBatch.DrawableType
    LineBatch.RenderStateOrder
    LineBatch.MaterialID
    LineBatch.InputLayoutID
    LineBatch.SortMode
    LineBatch.OrderBias
    LineBatch.IsReady
    LineBatch.RenderLayerDescription
    LineBatch.Collect(DrawContext)
    LineBatch.Reset()
    LineBatch.DrawLine(Vector3, Vector3, Color)
    LineBatch.DrawLine(ref Line)
    LineBatch.DrawLine(ref Vector3, ref Vector3, ref Color)
    LineBatch.RefreshBoundingBox()
    LineBatch.RefreshBufferCapacity(uint)
    LineBatch.Destroy()
    RenderObjectInfo.boundingBox
    RenderObjectInfo.CullingType
    RenderObjectInfo.Drawable
    RenderObjectInfo.isBoundingBoxDirty
    RenderObjectInfo.isSortKeyDirty
    RenderObjectInfo.IsEnabled
    RenderObjectInfo.Tag
    RenderObjectInfo.RenderFlags
    RenderObjectInfo.IsCullingEnabled
    RenderObjectInfo.FlipWinding
    RenderObjectInfo.IsSortKeyDirty
    RenderObjectInfo.IsActive
    RenderObjectInfo.SortKey
    RenderObjectInfo.Transform
    RenderObjectInfo.BoundingBox
    RenderObjectInfo.MakeDirty()
    DisposableObject.Disposed
    DisposableObject.Dispose()
    DisposableObject.Dispose(bool)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.Framework.Graphics
    Assembly: Evergine.Framework.dll
    Syntax
    public class LineBatch2D : LineBatch, IDisposable

    Constructors

    LineBatch2D(GraphicsContext, RenderLayerDescription)

    Initializes a new instance of the LineBatch2D class.

    Declaration
    public LineBatch2D(GraphicsContext graphicsContext, RenderLayerDescription renderLayerDescription)
    Parameters
    Type Name Description
    GraphicsContext graphicsContext

    The graphics context.

    RenderLayerDescription renderLayerDescription

    The render layer.

    Methods

    DrawBoundingBox(BoundingBox, Color)

    Draws the rectangle.

    Declaration
    public void DrawBoundingBox(BoundingBox boundingBox, Color color)
    Parameters
    Type Name Description
    BoundingBox boundingBox

    The Bounding Box.

    Color color

    The color.

    DrawCircle(Vector2, float, Color, float)

    Draws the circle.

    Declaration
    public void DrawCircle(Vector2 center, float radius, Color color, float drawOrder)
    Parameters
    Type Name Description
    Vector2 center

    The center.

    float radius

    The radius.

    Color color

    The color.

    float drawOrder

    The draw order.

    DrawCircle(ref Vector2, float, ref Color, float)

    Draws the circle.

    Declaration
    public void DrawCircle(ref Vector2 center, float radius, ref Color color, float drawOrder)
    Parameters
    Type Name Description
    Vector2 center

    The center.

    float radius

    The radius.

    Color color

    The color.

    float drawOrder

    The draw order.

    DrawLine(ref Vector2, ref Vector2, ref Color, float)

    Draws the line.

    Declaration
    public void DrawLine(ref Vector2 startPoint, ref Vector2 endPoint, ref Color color, float drawOrder)
    Parameters
    Type Name Description
    Vector2 startPoint

    The start point.

    Vector2 endPoint

    The end point.

    Color color

    The color.

    float drawOrder

    The draw order of the line.

    DrawPoint(Vector2, float, Color, float)

    Draw the point.

    Declaration
    public void DrawPoint(Vector2 point, float size, Color color, float drawOrder)
    Parameters
    Type Name Description
    Vector2 point

    Point object.

    float size

    The Size.

    Color color

    Color object.

    float drawOrder

    The draw order.

    DrawPoint(ref Vector2, float, ref Color, float)

    Draw the point.

    Declaration
    public void DrawPoint(ref Vector2 point, float size, ref Color color, float drawOrder)
    Parameters
    Type Name Description
    Vector2 point

    Point object.

    float size

    The Size.

    Color color

    Color object.

    float drawOrder

    The draw order.

    DrawRectangle(RectangleF, Color, float)

    Draw the rectangle.

    Declaration
    public void DrawRectangle(RectangleF rectangle, Color color, float drawOrder)
    Parameters
    Type Name Description
    RectangleF rectangle

    Rectangle object.

    Color color

    Color object.

    float drawOrder

    The draw order.

    DrawRectangle(ref RectangleF, ref Color, float)

    Draw the rectangle.

    Declaration
    public void DrawRectangle(ref RectangleF rectangle, ref Color color, float drawOrder)
    Parameters
    Type Name Description
    RectangleF rectangle

    Reference Rectangle object.

    Color color

    Reference Color object.

    float drawOrder

    The draw order.

    DrawRectangle(Vector2, Vector2, Color, float)

    Draws the rectangle.

    Declaration
    public void DrawRectangle(Vector2 min, Vector2 max, Color color, float drawOrder)
    Parameters
    Type Name Description
    Vector2 min

    The min.

    Vector2 max

    The max.

    Color color

    The color.

    float drawOrder

    The draw order.

    DrawRectangle(ref Vector2, ref Vector2, ref Color, float)

    Draws the rectangle.

    Declaration
    public void DrawRectangle(ref Vector2 min, ref Vector2 max, ref Color color, float drawOrder)
    Parameters
    Type Name Description
    Vector2 min

    The min.

    Vector2 max

    The max.

    Color color

    The color.

    float drawOrder

    The draw order.

    DrawTriangle(Vector2, Vector2, Vector2, Color, float)

    Draws the triangle.

    Declaration
    public void DrawTriangle(Vector2 a, Vector2 b, Vector2 c, Color color, float drawOrder)
    Parameters
    Type Name Description
    Vector2 a

    First triangle vertex.

    Vector2 b

    Second triangle vertex.

    Vector2 c

    Third triangle vertex.

    Color color

    Triangle color.

    float drawOrder

    The draw order.

    DrawTriangle(ref Vector2, ref Vector2, ref Vector2, ref Color, float)

    Draws the triangle.

    Declaration
    public void DrawTriangle(ref Vector2 a, ref Vector2 b, ref Vector2 c, ref Color color, float drawOrder)
    Parameters
    Type Name Description
    Vector2 a

    First triangle vertex.

    Vector2 b

    Second triangle vertex.

    Vector2 c

    Third triangle vertex.

    Color color

    Triangle color.

    float drawOrder

    The draw order.

    Implements

    IDisposable

    Extension Methods

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