Class Canvas
Manages the rendering of text to the screen for a given Scene.
public class Canvas
- Inheritance
-
Canvas
- Inherited Members
Constructors
Canvas(Scene)
Initializes a new instance of the Canvas class and loads the default fonts.
public Canvas(Scene scene)
Parameters
Methods
DrawText(SpriteBatch, string, FontSize, Point, Color)
Draws a string of text centered at the given position.
public void DrawText(SpriteBatch spriteBatch, string text, FontSize size, Point position, Color color)