C# 클래스 RenderingLibrary.Graphics.BitmapFont

상속: IDisposable
파일 보기 프로젝트 열기: vchelaru/FlatRedBall 1 사용 예제들

공개 메소드들

메소드 설명
AssignCharacterTextureCoordinates ( int asciiNumber, float &tVTop, float &tVBottom, float &tULeft, float &tURight ) : void
BitmapFont ( Microsoft.Xna.Framework.Graphics.Texture2D fontTextureGraphic, string fontPattern ) : System
BitmapFont ( string fontFile, SystemManagers managers ) : System
BitmapFont ( string textureFile, string fontFile, SystemManagers managers ) : System
Dispose ( ) : void
DistanceFromTopOfLine ( int asciiNumber ) : float
GetCharacterHeight ( int asciiNumber ) : float
GetCharacterInfo ( char character ) : BitmapCharacterInfo
GetCharacterInfo ( int asciiNumber ) : BitmapCharacterInfo
GetCharacterRect ( char c, int lineNumber, Point &point, Rectangle &destinationRectangle, int &pageIndex, float fontScale = 1 ) : Rectangle
GetCharacterScaleX ( int asciiNumber ) : float
GetCharacterSpacing ( int asciiNumber ) : float
GetCharacterWidth ( char character ) : float
GetCharacterWidth ( int asciiNumber ) : float
GetCharacterXOffset ( int asciiNumber ) : float
GetRequiredWithAndHeight ( IEnumerable lines, int &requiredWidth, int &requiredHeight ) : void
GetSourceTextures ( string fontPattern ) : string[]
MeasureString ( string line ) : int
RenderAtlasedTextureToScreen ( List lines, HorizontalAlignment horizontalAlignment, float textureToRenderHeight, Color color, float rotation, float fontScale, SystemManagers managers, SpriteRenderer spriteRenderer, object objectRequestingChange ) : void

Used for rendering directly to screen with an atlased texture.

RenderToTexture2D ( IEnumerable lines, HorizontalAlignment horizontalAlignment, SystemManagers managers, Microsoft.Xna.Framework.Graphics.Texture2D toReplace, object objectRequestingRender ) : Microsoft.Xna.Framework.Graphics.Texture2D

RenderToTexture2D ( string whatToRender, HorizontalAlignment horizontalAlignment, SystemManagers managers, object objectRequestingRender ) : Microsoft.Xna.Framework.Graphics.Texture2D
RenderToTexture2D ( string whatToRender, SystemManagers managers, object objectRequestingRender ) : Microsoft.Xna.Framework.Graphics.Texture2D
SetFontPattern ( string fontPattern ) : void
SetFontPatternFromFile ( string fntFileName ) : void

비공개 메소드들

메소드 설명
CheckForLoadedAtlasTexture ( string filename ) : AtlasedTexture
DrawLines ( IEnumerable lines, HorizontalAlignment horizontalAlignment, object objectRequestingChange, int requiredWidth, List widths, SpriteRenderer spriteRenderer ) : Point
FillBitmapCharacterInfo ( int characterID, string fontString, int textureWidth, int textureHeight, int lineHeightInPixels, int startingIndex ) : BitmapCharacterInfo
GetRequiredWithAndHeight ( IEnumerable lines, int &requiredWidth, int &requiredHeight, List &widths ) : void
RenderToTexture2DUsingImageData ( IEnumerable lines, HorizontalAlignment horizontalAlignment, SystemManagers managers ) : Microsoft.Xna.Framework.Graphics.Texture2D
RenderToTexture2DUsingRenderStates ( IEnumerable lines, HorizontalAlignment horizontalAlignment, SystemManagers managers, Microsoft.Xna.Framework.Graphics.Texture2D toReplace, object objectRequestingChange ) : Microsoft.Xna.Framework.Graphics.Texture2D

메소드 상세

AssignCharacterTextureCoordinates() 공개 메소드

public AssignCharacterTextureCoordinates ( int asciiNumber, float &tVTop, float &tVBottom, float &tULeft, float &tURight ) : void
asciiNumber int
tVTop float
tVBottom float
tULeft float
tURight float
리턴 void

BitmapFont() 공개 메소드

public BitmapFont ( Microsoft.Xna.Framework.Graphics.Texture2D fontTextureGraphic, string fontPattern ) : System
fontTextureGraphic Microsoft.Xna.Framework.Graphics.Texture2D
fontPattern string
리턴 System

BitmapFont() 공개 메소드

public BitmapFont ( string fontFile, SystemManagers managers ) : System
fontFile string
managers SystemManagers
리턴 System

BitmapFont() 공개 메소드

public BitmapFont ( string textureFile, string fontFile, SystemManagers managers ) : System
textureFile string
fontFile string
managers SystemManagers
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

DistanceFromTopOfLine() 공개 메소드

public DistanceFromTopOfLine ( int asciiNumber ) : float
asciiNumber int
리턴 float

GetCharacterHeight() 공개 메소드

public GetCharacterHeight ( int asciiNumber ) : float
asciiNumber int
리턴 float

GetCharacterInfo() 공개 메소드

public GetCharacterInfo ( char character ) : BitmapCharacterInfo
character char
리턴 BitmapCharacterInfo

GetCharacterInfo() 공개 메소드

public GetCharacterInfo ( int asciiNumber ) : BitmapCharacterInfo
asciiNumber int
리턴 BitmapCharacterInfo

GetCharacterRect() 공개 메소드

public GetCharacterRect ( char c, int lineNumber, Point &point, Rectangle &destinationRectangle, int &pageIndex, float fontScale = 1 ) : Rectangle
c char
lineNumber int
point Point
destinationRectangle Microsoft.Xna.Framework.Rectangle
pageIndex int
fontScale float
리턴 Microsoft.Xna.Framework.Rectangle

GetCharacterScaleX() 공개 메소드

public GetCharacterScaleX ( int asciiNumber ) : float
asciiNumber int
리턴 float

GetCharacterSpacing() 공개 메소드

public GetCharacterSpacing ( int asciiNumber ) : float
asciiNumber int
리턴 float

GetCharacterWidth() 공개 메소드

public GetCharacterWidth ( char character ) : float
character char
리턴 float

GetCharacterWidth() 공개 메소드

public GetCharacterWidth ( int asciiNumber ) : float
asciiNumber int
리턴 float

GetCharacterXOffset() 공개 메소드

public GetCharacterXOffset ( int asciiNumber ) : float
asciiNumber int
리턴 float

GetRequiredWithAndHeight() 공개 메소드

public GetRequiredWithAndHeight ( IEnumerable lines, int &requiredWidth, int &requiredHeight ) : void
lines IEnumerable
requiredWidth int
requiredHeight int
리턴 void

GetSourceTextures() 공개 정적인 메소드

public static GetSourceTextures ( string fontPattern ) : string[]
fontPattern string
리턴 string[]

MeasureString() 공개 메소드

public MeasureString ( string line ) : int
line string
리턴 int

RenderAtlasedTextureToScreen() 공개 메소드

Used for rendering directly to screen with an atlased texture.
public RenderAtlasedTextureToScreen ( List lines, HorizontalAlignment horizontalAlignment, float textureToRenderHeight, Color color, float rotation, float fontScale, SystemManagers managers, SpriteRenderer spriteRenderer, object objectRequestingChange ) : void
lines List
horizontalAlignment HorizontalAlignment
textureToRenderHeight float
color Color
rotation float
fontScale float
managers SystemManagers
spriteRenderer SpriteRenderer
objectRequestingChange object
리턴 void

RenderToTexture2D() 공개 메소드

public RenderToTexture2D ( IEnumerable lines, HorizontalAlignment horizontalAlignment, SystemManagers managers, Microsoft.Xna.Framework.Graphics.Texture2D toReplace, object objectRequestingRender ) : Microsoft.Xna.Framework.Graphics.Texture2D
lines IEnumerable
horizontalAlignment HorizontalAlignment
managers SystemManagers
toReplace Microsoft.Xna.Framework.Graphics.Texture2D
objectRequestingRender object
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

RenderToTexture2D() 공개 메소드

public RenderToTexture2D ( string whatToRender, HorizontalAlignment horizontalAlignment, SystemManagers managers, object objectRequestingRender ) : Microsoft.Xna.Framework.Graphics.Texture2D
whatToRender string
horizontalAlignment HorizontalAlignment
managers SystemManagers
objectRequestingRender object
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

RenderToTexture2D() 공개 메소드

public RenderToTexture2D ( string whatToRender, SystemManagers managers, object objectRequestingRender ) : Microsoft.Xna.Framework.Graphics.Texture2D
whatToRender string
managers SystemManagers
objectRequestingRender object
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

SetFontPattern() 공개 메소드

public SetFontPattern ( string fontPattern ) : void
fontPattern string
리턴 void

SetFontPatternFromFile() 공개 메소드

public SetFontPatternFromFile ( string fntFileName ) : void
fntFileName string
리턴 void