|
Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
|


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< VertexPositionColorTexture > | TriangleVertices = [] |
| 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.cs 第 4 行定义.
| Engine.Graphics.FontBatch2D.FontBatch2D | ( | ) |
| void Engine.Graphics.FontBatch2D.Flush | ( | bool | clearAfterFlush = true | ) |
| void Engine.Graphics.FontBatch2D.Flush | ( | Vector4 | color, |
| bool | clearAfterFlush = true ) |
| void Engine.Graphics.FontBatch2D.QueueBatch | ( | FontBatch2D | batch, |
| Matrix? | matrix = null, | ||
| Color? | color = null ) |
| void Engine.Graphics.FontBatch2D.QueueText | ( | string | text, |
| Vector2 | position, | ||
| float | depth, | ||
| Color | color, | ||
| TextAnchor | anchor, | ||
| Vector2 | scale, | ||
| Vector2 | spacing = default, | ||
| float | angle = 0f ) |
| void Engine.Graphics.FontBatch2D.QueueText | ( | string | text, |
| Vector2 | position, | ||
| float | depth, | ||
| Color | color, | ||
| TextAnchor | anchor = TextAnchor::Default ) |