Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Engine.Media.BitmapFont
类 Engine.Media.BitmapFont 继承关系图:
Engine.Media.BitmapFont 的协作图:

class  Counter
class  Glyph
class  KerningSettings

Public 成员函数

 BitmapFont (Texture2D texture, IEnumerable< Glyph > glyphs, char fallbackCode, float glyphHeight, Vector2 spacing, float scale)
void Dispose ()
Glyph GetGlyph (char code)
float GetKerning (char code, char followingCode)
Vector2 MeasureText (string text, Vector2 scale, Vector2 spacing)
Vector2 MeasureText (string text, int start, int count, Vector2 scale, Vector2 spacing)
int FitText (float width, string text, float scale, float spacing)
int FitText (float width, string text, int start, int length, float scale, float spacing)
float CalculateCharacterPosition (string text, int characterIndex, Vector2 scale, Vector2 spacing)
BitmapFont Clone (float scale, Vector2 spacing)
void SetKerning (char code, char followingCode, float kerning)

静态 Public 成员函数

static BitmapFont Initialize (Stream TextureStream, Stream GlyphsStream, Vector2? customGlyphOffset=null)
 纹理图
static BitmapFont Initialize (Texture2D texture, Stream GlyphsStream, Vector2? customGlyphOffset=null)
static BitmapFont Load (Image image, char firstCode, char fallbackCode, Vector2 spacing, float scale, Vector2 offset, KerningSettings kerningSettings=null, int mipLevelsCount=1, bool premultiplyAlpha=true)
static BitmapFont Load (Stream stream, char firstCode, char fallbackCode, Vector2 spacing, float scale, Vector2 offset, KerningSettings kerningSettings=null, int mipLevelsCount=1, bool premultiplyAlpha=true)
static BitmapFont Load (string fileName, char firstCode, char fallbackCode, Vector2 spacing, float scale, Vector2 offset, KerningSettings kerningSettings=null, int mipLevelsCount=1, bool premultiplyAlpha=true)
static IEnumerable< RectangleFindGlyphs (Image image)
static int[] ApplyKerningBulking (int[] depths, int radius, float gradient)
static void CalculateKerningDepths (Image image, Rectangle rectangle, out int[] leftDepths, out int[] rightDepths)
static Rectangle CropGlyph (Image image, Rectangle rectangle)

Public 属性

Glyph[] m_glyphsByCode
Image m_image
Dictionary< int, short > m_kerningPairs

静态 Public 属性

static BitmapFont m_debugFont
static Glyph EmptyGlyph = new((char)0, Vector2.Zero, Vector2.Zero, Vector2.Zero, 0f)

包函数

 BitmapFont ()
void Initialize (Texture2D texture, Image image, IEnumerable< Glyph > glyphs, char fallbackCode, float glyphHeight, Vector2 spacing, float scale)

静态包函数

static BitmapFont InternalLoad (Image image, char firstCode, char fallbackCode, Vector2 spacing, float scale, Vector2 offset, KerningSettings kerningSettings, int mipLevelsCount, bool premultiplyAlpha, bool createTexture)

属性

Texture2D Texture [get, set]
float GlyphHeight [get, set]
float LineHeight [get, set]
Vector2 Spacing [get, set]
float Scale [get, set]
Glyph FallbackGlyph [get, set]
char MaxGlyphCode [get, set]
static BitmapFont DebugFont [get]

静态 Private 成员函数

static BitmapFont ()

详细描述

在文件 BitmapFont.cs6 行定义.

构造及析构函数说明

◆ BitmapFont() [1/3]

Engine.Media.BitmapFont.BitmapFont ( Texture2D texture,
IEnumerable< Glyph > glyphs,
char fallbackCode,
float glyphHeight,
Vector2 spacing,
float scale )

在文件 BitmapFont.cs201 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ BitmapFont() [2/3]

Engine.Media.BitmapFont.BitmapFont ( )
staticprivate

在文件 BitmapFont.cs362 行定义.

函数调用图:

◆ BitmapFont() [3/3]

Engine.Media.BitmapFont.BitmapFont ( )
package

在文件 BitmapFont.cs372 行定义.

成员函数说明

◆ ApplyKerningBulking()

int[] Engine.Media.BitmapFont.ApplyKerningBulking ( int[] depths,
int radius,
float gradient )
static

在文件 BitmapFont.cs551 行定义.

函数调用图:

◆ CalculateCharacterPosition()

float Engine.Media.BitmapFont.CalculateCharacterPosition ( string text,
int characterIndex,
Vector2 scale,
Vector2 spacing )

在文件 BitmapFont.cs292 行定义.

函数调用图:

◆ CalculateKerningDepths()

void Engine.Media.BitmapFont.CalculateKerningDepths ( Image image,
Rectangle rectangle,
out int[] leftDepths,
out int[] rightDepths )
static

在文件 BitmapFont.cs566 行定义.

函数调用图:

◆ Clone()

BitmapFont Engine.Media.BitmapFont.Clone ( float scale,
Vector2 spacing )

在文件 BitmapFont.cs582 行定义.

函数调用图:

◆ CropGlyph()

Rectangle Engine.Media.BitmapFont.CropGlyph ( Image image,
Rectangle rectangle )
static

在文件 BitmapFont.cs595 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Dispose()

void Engine.Media.BitmapFont.Dispose ( )

在文件 BitmapFont.cs213 行定义.

这是这个函数的调用关系图:

◆ FindGlyphs()

IEnumerable< Rectangle > Engine.Media.BitmapFont.FindGlyphs ( Image image)
static

在文件 BitmapFont.cs530 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ FitText() [1/2]

int Engine.Media.BitmapFont.FitText ( float width,
string text,
float scale,
float spacing )

在文件 BitmapFont.cs265 行定义.

◆ FitText() [2/2]

int Engine.Media.BitmapFont.FitText ( float width,
string text,
int start,
int length,
float scale,
float spacing )

在文件 BitmapFont.cs267 行定义.

函数调用图:

◆ GetGlyph()

Glyph Engine.Media.BitmapFont.GetGlyph ( char code)

在文件 BitmapFont.cs220 行定义.

这是这个函数的调用关系图:

◆ GetKerning()

float Engine.Media.BitmapFont.GetKerning ( char code,
char followingCode )

在文件 BitmapFont.cs223 行定义.

这是这个函数的调用关系图:

◆ Initialize() [1/3]

BitmapFont Engine.Media.BitmapFont.Initialize ( Stream TextureStream,
Stream GlyphsStream,
Vector2? customGlyphOffset = null )
static

纹理图

参数
TextureStream图片文件的输入流
GlyphsStream位图数据的输入流
customGlyphOffset自定义位图偏移

在文件 BitmapFont.cs108 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Initialize() [2/3]

void Engine.Media.BitmapFont.Initialize ( Texture2D texture,
Image image,
IEnumerable< Glyph > glyphs,
char fallbackCode,
float glyphHeight,
Vector2 spacing,
float scale )
package

在文件 BitmapFont.cs497 行定义.

函数调用图:

◆ Initialize() [3/3]

BitmapFont Engine.Media.BitmapFont.Initialize ( Texture2D texture,
Stream GlyphsStream,
Vector2? customGlyphOffset = null )
static

在文件 BitmapFont.cs111 行定义.

函数调用图:

◆ InternalLoad()

BitmapFont Engine.Media.BitmapFont.InternalLoad ( Image image,
char firstCode,
char fallbackCode,
Vector2 spacing,
float scale,
Vector2 offset,
KerningSettings kerningSettings,
int mipLevelsCount,
bool premultiplyAlpha,
bool createTexture )
staticpackage

在文件 BitmapFont.cs374 行定义.

函数调用图:

◆ Load() [1/3]

BitmapFont Engine.Media.BitmapFont.Load ( Image image,
char firstCode,
char fallbackCode,
Vector2 spacing,
float scale,
Vector2 offset,
KerningSettings kerningSettings = null,
int mipLevelsCount = 1,
bool premultiplyAlpha = true )
static

在文件 BitmapFont.cs297 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Load() [2/3]

BitmapFont Engine.Media.BitmapFont.Load ( Stream stream,
char firstCode,
char fallbackCode,
Vector2 spacing,
float scale,
Vector2 offset,
KerningSettings kerningSettings = null,
int mipLevelsCount = 1,
bool premultiplyAlpha = true )
static

在文件 BitmapFont.cs318 行定义.

函数调用图:

◆ Load() [3/3]

BitmapFont Engine.Media.BitmapFont.Load ( string fileName,
char firstCode,
char fallbackCode,
Vector2 spacing,
float scale,
Vector2 offset,
KerningSettings kerningSettings = null,
int mipLevelsCount = 1,
bool premultiplyAlpha = true )
static

在文件 BitmapFont.cs338 行定义.

函数调用图:

◆ MeasureText() [1/2]

Vector2 Engine.Media.BitmapFont.MeasureText ( string text,
int start,
int count,
Vector2 scale,
Vector2 spacing )

在文件 BitmapFont.cs233 行定义.

函数调用图:

◆ MeasureText() [2/2]

Vector2 Engine.Media.BitmapFont.MeasureText ( string text,
Vector2 scale,
Vector2 spacing )

在文件 BitmapFont.cs231 行定义.

这是这个函数的调用关系图:

◆ SetKerning()

void Engine.Media.BitmapFont.SetKerning ( char code,
char followingCode,
float kerning )

在文件 BitmapFont.cs615 行定义.

这是这个函数的调用关系图:

类成员变量说明

◆ EmptyGlyph

Glyph Engine.Media.BitmapFont.EmptyGlyph = new((char)0, Vector2.Zero, Vector2.Zero, Vector2.Zero, 0f)
static

在文件 BitmapFont.cs74 行定义.

◆ m_debugFont

BitmapFont Engine.Media.BitmapFont.m_debugFont
static

在文件 BitmapFont.cs54 行定义.

◆ m_glyphsByCode

Glyph [] Engine.Media.BitmapFont.m_glyphsByCode

在文件 BitmapFont.cs56 行定义.

◆ m_image

Image Engine.Media.BitmapFont.m_image

在文件 BitmapFont.cs58 行定义.

◆ m_kerningPairs

Dictionary<int, short> Engine.Media.BitmapFont.m_kerningPairs

在文件 BitmapFont.cs60 行定义.

属性说明

◆ DebugFont

BitmapFont Engine.Media.BitmapFont.DebugFont
staticget

在文件 BitmapFont.cs78 行定义.

◆ FallbackGlyph

Glyph Engine.Media.BitmapFont.FallbackGlyph
getset

在文件 BitmapFont.cs72 行定义.

◆ GlyphHeight

float Engine.Media.BitmapFont.GlyphHeight
getset

在文件 BitmapFont.cs64 行定义.

◆ LineHeight

float Engine.Media.BitmapFont.LineHeight
getset

在文件 BitmapFont.cs66 行定义.

◆ MaxGlyphCode

char Engine.Media.BitmapFont.MaxGlyphCode
getset

在文件 BitmapFont.cs76 行定义.

◆ Scale

float Engine.Media.BitmapFont.Scale
getset

在文件 BitmapFont.cs70 行定义.

◆ Spacing

Vector2 Engine.Media.BitmapFont.Spacing
getset

在文件 BitmapFont.cs68 行定义.

◆ Texture

Texture2D Engine.Media.BitmapFont.Texture
getset

在文件 BitmapFont.cs62 行定义.


该类的文档由以下文件生成:
  • E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Engine/Engine.Media/BitmapFont.cs