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

Public 成员函数

 FontBatch2D ()
void QueueBatch (FontBatch2D batch, Matrix? matrix=null, Color? color=null)
void QueueText (string text, Vector2 position, float depth, Color color, TextAnchor anchor=TextAnchor.Default)
void QueueText (string text, Vector2 position, float depth, Color color, TextAnchor anchor, Vector2 scale, Vector2 spacing=default, float angle=0f)
void Flush (bool clearAfterFlush=true)
void Flush (Vector4 color, bool clearAfterFlush=true)
Public 成员函数 继承自 Engine.Graphics.BaseFontBatch
override bool IsEmpty ()
override void Clear ()
void Flush (Matrix matrix, bool clearAfterFlush=true)
override void Flush (Matrix matrix, Vector4 color, bool clearAfterFlush=true)
void FlushWithDeviceState (BitmapFont font, SamplerState samplerState, Matrix matrix, Vector4 color, bool clearAfterFlush=true)
void FlushWithDeviceState (Shader shader, bool clearAfterFlush=true)
void FlushWithCurrentStateAndShader (Shader shader, bool clearAfterFlush=true)
void TransformTriangles (Matrix matrix, int start=0, int end=-1)
void TransformTrianglesColors (Color color, int start=0, int end=-1)
Vector2 CalculateTextOffset (string text, int start, int count, TextAnchor anchor, Vector2 scale, Vector2 spacing)
Public 成员函数 继承自 Engine.Graphics.BaseBatch
bool IsEmpty ()
void Clear ()
void Flush (Matrix matrix, Vector4 color, bool clearAfterFlush=true)

Private 成员函数

void QueueLine (string text, int begin, int end, float depth, Color color, float fullSpacing, Vector2 corner, Vector2 right, Vector2 down)

额外继承的成员函数

Public 属性 继承自 Engine.Graphics.BaseFontBatch
readonly DynamicArray< VertexPositionColorTextureTriangleVertices = []
readonly DynamicArray< int > TriangleIndices = []
静态 Public 属性 继承自 Engine.Graphics.BaseFontBatch
static UnlitShader m_shader = new(true, true, false, false)
属性 继承自 Engine.Graphics.BaseFontBatch
BitmapFont Font [get, set]
SamplerState SamplerState [get, set]
属性 继承自 Engine.Graphics.BaseBatch
int Layer [get, set]
DepthStencilState DepthStencilState [get, set]
RasterizerState RasterizerState [get, set]
BlendState BlendState [get, set]

详细描述

在文件 FontBatch2D.cs4 行定义.

构造及析构函数说明

◆ FontBatch2D()

Engine.Graphics.FontBatch2D.FontBatch2D ( )

在文件 FontBatch2D.cs5 行定义.

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

成员函数说明

◆ Flush() [1/2]

void Engine.Graphics.FontBatch2D.Flush ( bool clearAfterFlush = true)

在文件 FontBatch2D.cs95 行定义.

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

◆ Flush() [2/2]

void Engine.Graphics.FontBatch2D.Flush ( Vector4 color,
bool clearAfterFlush = true )

在文件 FontBatch2D.cs99 行定义.

函数调用图:

◆ QueueBatch()

void Engine.Graphics.FontBatch2D.QueueBatch ( FontBatch2D batch,
Matrix? matrix = null,
Color? color = null )

在文件 FontBatch2D.cs13 行定义.

函数调用图:

◆ QueueLine()

void Engine.Graphics.FontBatch2D.QueueLine ( string text,
int begin,
int end,
float depth,
Color color,
float fullSpacing,
Vector2 corner,
Vector2 right,
Vector2 down )
private

在文件 FontBatch2D.cs103 行定义.

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

◆ QueueText() [1/2]

void Engine.Graphics.FontBatch2D.QueueText ( string text,
Vector2 position,
float depth,
Color color,
TextAnchor anchor,
Vector2 scale,
Vector2 spacing = default,
float angle = 0f )

在文件 FontBatch2D.cs41 行定义.

函数调用图:

◆ QueueText() [2/2]

void Engine.Graphics.FontBatch2D.QueueText ( string text,
Vector2 position,
float depth,
Color color,
TextAnchor anchor = TextAnchor::Default )

在文件 FontBatch2D.cs29 行定义.

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

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