DrawCallColor Class
Definition
Section titled “Definition”Draws a colored rectangle to the active SharedSpriteBatch.
public class DrawCallColor : IDrawCallInheritance object
Implements IDrawCall
Constructors
Section titled “Constructors”DrawCallColor(Color, Texture2D, Rectangle, Rectangle)
Section titled “DrawCallColor(Color, Texture2D, Rectangle, Rectangle)”Creates a new instance of this draw call.
public DrawCallColor(Color color, Texture2D texture, Rectangle targetRect, Rectangle fontSolidRect)Parameters
Section titled “Parameters”color Microsoft.Xna.Framework.Color
The folor of the rectangle.
texture Microsoft.Xna.Framework.Graphics.Texture2D
The texture containing a solid white rectangle referenced by fontSolidRect.
targetRect Microsoft.Xna.Framework.Rectangle
The drawing location of the rectangle.
fontSolidRect Microsoft.Xna.Framework.Rectangle
The rectangle of the solid white glyph in the texture.
Fields
Section titled “Fields”Texture
Section titled “Texture”The texture, most likely a SadConsole font texture, containing the solid white rectangle referenced by FontSolidRect.
public Texture2D TextureFontSolidRect
Section titled “FontSolidRect”The solid white glyph rectangle from Texture used for shading.
public Rectangle FontSolidRectThe color of the target rectangle.
public Color ColorTargetRect
Section titled “TargetRect”Where on the SharedSpriteBatch the glyph should be drawn.
public Rectangle TargetRectMethods
Section titled “Methods”Draw()
Section titled “Draw()”Draws an object.
public void Draw()