Class DrawCallColor
Draws a colored rectangle to the active SharedSpriteBatch.
Implements
Inherited Members
Namespace: SadConsole.DrawCalls
Assembly: SadConsole.Host.MonoGame.dll
Syntax
public class DrawCallColor : IDrawCall
Constructors
DrawCallColor(Color, Texture2D, Rectangle, Rectangle)
Creates a new instance of this draw call.
Declaration
public DrawCallColor(Color color, Texture2D texture, Rectangle targetRect, Rectangle fontSolidRect)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The folor of the rectangle. |
Texture2D | texture | The texture containing a solid white rectangle referenced by |
Rectangle | targetRect | The drawing location of the rectangle. |
Rectangle | fontSolidRect | The rectangle of the solid white glyph in the |
Fields
Color
The color of the target rectangle.
Declaration
public Color Color
Field Value
Type | Description |
---|---|
Color |
FontSolidRect
The solid white glyph rectangle from Texture used for shading.
Declaration
public Rectangle FontSolidRect
Field Value
Type | Description |
---|---|
Rectangle |
TargetRect
Where on the SharedSpriteBatch the glyph should be drawn.
Declaration
public Rectangle TargetRect
Field Value
Type | Description |
---|---|
Rectangle |
Texture
The texture, most likely a SadConsole font texture, containing the solid white rectangle referenced by FontSolidRect.
Declaration
public Texture2D Texture
Field Value
Type | Description |
---|---|
Texture2D |
Methods
Draw()
Draws an object.
Declaration
public void Draw()