Class DrawCallCustom
A draw call that invokes an Action delegate.
Implements
Inherited Members
Namespace: SadConsole.DrawCalls
Assembly: SadConsole.dll
Syntax
public class DrawCallCustom : IDrawCall
Constructors
DrawCallCustom(Action)
Creates a new instance of this object.
Declaration
public DrawCallCustom(Action draw)
Parameters
Type | Name | Description |
---|---|---|
Action | draw | The delegate to call when the draw call is drawn. |
Properties
DrawCallback
The delegate to call.
Declaration
public Action DrawCallback { get; set; }
Property Value
Type | Description |
---|---|
Action |
Methods
Draw()
Invokes DrawCallback.
Declaration
public void Draw()