Show / Hide Table of Contents

Class DrawCallColor

Draws a colored rectangle to the active SharedSpriteBatch.

Inheritance
object
DrawCallColor
Implements
IDrawCall
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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 fontSolidRect.

Rectangle targetRect

The drawing location of the rectangle.

Rectangle fontSolidRect

The rectangle of the solid white glyph in the texture.

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()

Implements

IDrawCall

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX