C# 클래스 geek.GameEngine.Visuals.GameText

The class representing the text drawable on screen.
상속: InteractableObject
파일 보기 프로젝트 열기: impworks/xna.geek.engine

공개 프로퍼티들

프로퍼티 타입 설명
Font Microsoft.Xna.Framework.Graphics.SpriteFont

보호된 프로퍼티들

프로퍼티 타입 설명
_HotSpot Microsoft.Xna.Framework.Vector2

공개 메소드들

메소드 설명
Draw ( SpriteBatch batch ) : void
GameText ( SpriteFont font, string text = "" ) : Microsoft.Xna.Framework
GameText ( string fontAsset, string text = "" ) : Microsoft.Xna.Framework
GetBoundingBox ( bool absolute = false ) : Rectangle

보호된 메소드들

메소드 설명
resetDimensions ( ) : void

Recalculate hot spot and scaling.

메소드 상세

Draw() 공개 메소드

public Draw ( SpriteBatch batch ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

GameText() 공개 메소드

public GameText ( SpriteFont font, string text = "" ) : Microsoft.Xna.Framework
font Microsoft.Xna.Framework.Graphics.SpriteFont
text string
리턴 Microsoft.Xna.Framework

GameText() 공개 메소드

public GameText ( string fontAsset, string text = "" ) : Microsoft.Xna.Framework
fontAsset string
text string
리턴 Microsoft.Xna.Framework

GetBoundingBox() 공개 메소드

public GetBoundingBox ( bool absolute = false ) : Rectangle
absolute bool
리턴 Microsoft.Xna.Framework.Rectangle

resetDimensions() 보호된 메소드

Recalculate hot spot and scaling.
protected resetDimensions ( ) : void
리턴 void

프로퍼티 상세

Font 공개적으로 프로퍼티

Gets or sets the font of the text.
public SpriteFont,Microsoft.Xna.Framework.Graphics Font
리턴 Microsoft.Xna.Framework.Graphics.SpriteFont

_HotSpot 보호되어 있는 프로퍼티

The text hotspot defined by text alignment.
protected Vector2,Microsoft.Xna.Framework _HotSpot
리턴 Microsoft.Xna.Framework.Vector2