Skip to content

DrawCallGlyph Class

Draws a glyph to the active SharedSpriteBatch.

C#
public class DrawCallGlyph : IDrawCall

Inheritance object

Implements IDrawCall

DrawCallGlyph(ColoredGlyphBase, Rectangle, IFont, bool)

Section titled “DrawCallGlyph(ColoredGlyphBase, Rectangle, IFont, bool)”

Creates a new instance of this draw call.

C#
public DrawCallGlyph(ColoredGlyphBase cell, Rectangle targetRect, IFont font, bool drawBackground)

cell ColoredGlyphBase
The glyph to be drawn.

targetRect Microsoft.Xna.Framework.Rectangle
Where on the SharedSpriteBatch the glyph should be drawn.

font IFont
The font to use when drawing the glyph.

drawBackground bool
When true, draws the Background color for the glyph; otherwise false.

The font to use when drawing the glyph.

C#
public IFont Font

The glyph to be drawn.

C#
public ColoredGlyphBase Cell

Where on the SharedSpriteBatch the glyph should be drawn.

C#
public Rectangle TargetRect

When true, draws the Background color for the glyph; otherwise false.

C#
public bool DrawBackground

Draws an object.

C#
public void Draw()