C# Class TextPackage.FontRenderer

ファイルを表示 Open project: TheGameDevelopmentClub/Manic-Shooter Class Usage Examples

Public Methods

Method Description
DrawText ( SpriteBatch spriteBatch, int x, int y, string text ) : void
FontRenderer ( Microsoft.Xna.Framework.Content.ContentManager contentManager, string fontName ) : System
FontRenderer ( FontFile fontFile, Microsoft.Xna.Framework.Graphics.Texture2D fontTexture ) : System

Private Methods

Method Description
InitRenderer ( FontFile fontFile, Microsoft.Xna.Framework.Graphics.Texture2D fontTexture ) : void

Method Details

DrawText() public method

public DrawText ( SpriteBatch spriteBatch, int x, int y, string text ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
x int
y int
text string
return void

FontRenderer() public method

public FontRenderer ( Microsoft.Xna.Framework.Content.ContentManager contentManager, string fontName ) : System
contentManager Microsoft.Xna.Framework.Content.ContentManager
fontName string
return System

FontRenderer() public method

public FontRenderer ( FontFile fontFile, Microsoft.Xna.Framework.Graphics.Texture2D fontTexture ) : System
fontFile FontFile
fontTexture Microsoft.Xna.Framework.Graphics.Texture2D
return System