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

Public 成员函数

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)

Public 属性

readonly DynamicArray< VertexPositionColorTextureTriangleVertices = []
readonly DynamicArray< int > TriangleIndices = []

静态 Public 属性

static UnlitShader m_shader = new(true, true, false, false)

属性

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]

详细描述

在文件 BaseFontBatch.cs4 行定义.

成员函数说明

◆ CalculateTextOffset()

Vector2 Engine.Graphics.BaseFontBatch.CalculateTextOffset ( string text,
int start,
int count,
TextAnchor anchor,
Vector2 scale,
Vector2 spacing )

在文件 BaseFontBatch.cs113 行定义.

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

◆ Clear()

override void Engine.Graphics.BaseFontBatch.Clear ( )

在文件 BaseFontBatch.cs17 行定义.

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

◆ Flush() [1/2]

void Engine.Graphics.BaseFontBatch.Flush ( Matrix matrix,
bool clearAfterFlush = true )

在文件 BaseFontBatch.cs22 行定义.

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

◆ Flush() [2/2]

override void Engine.Graphics.BaseFontBatch.Flush ( Matrix matrix,
Vector4 color,
bool clearAfterFlush = true )

在文件 BaseFontBatch.cs26 行定义.

函数调用图:

◆ FlushWithCurrentStateAndShader()

void Engine.Graphics.BaseFontBatch.FlushWithCurrentStateAndShader ( Shader shader,
bool clearAfterFlush = true )

在文件 BaseFontBatch.cs67 行定义.

函数调用图:

◆ FlushWithDeviceState() [1/2]

void Engine.Graphics.BaseFontBatch.FlushWithDeviceState ( BitmapFont font,
SamplerState samplerState,
Matrix matrix,
Vector4 color,
bool clearAfterFlush = true )

在文件 BaseFontBatch.cs33 行定义.

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

◆ FlushWithDeviceState() [2/2]

void Engine.Graphics.BaseFontBatch.FlushWithDeviceState ( Shader shader,
bool clearAfterFlush = true )

在文件 BaseFontBatch.cs41 行定义.

函数调用图:

◆ IsEmpty()

override bool Engine.Graphics.BaseFontBatch.IsEmpty ( )

在文件 BaseFontBatch.cs15 行定义.

◆ TransformTriangles()

void Engine.Graphics.BaseFontBatch.TransformTriangles ( Matrix matrix,
int start = 0,
int end = -1 )

在文件 BaseFontBatch.cs93 行定义.

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

◆ TransformTrianglesColors()

void Engine.Graphics.BaseFontBatch.TransformTrianglesColors ( Color color,
int start = 0,
int end = -1 )

在文件 BaseFontBatch.cs103 行定义.

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

类成员变量说明

◆ m_shader

UnlitShader Engine.Graphics.BaseFontBatch.m_shader = new(true, true, false, false)
static

在文件 BaseFontBatch.cs5 行定义.

◆ TriangleIndices

readonly DynamicArray<int> Engine.Graphics.BaseFontBatch.TriangleIndices = []

在文件 BaseFontBatch.cs9 行定义.

◆ TriangleVertices

readonly DynamicArray<VertexPositionColorTexture> Engine.Graphics.BaseFontBatch.TriangleVertices = []

在文件 BaseFontBatch.cs7 行定义.

属性说明

◆ Font

BitmapFont Engine.Graphics.BaseFontBatch.Font
getset

在文件 BaseFontBatch.cs11 行定义.

◆ SamplerState

SamplerState Engine.Graphics.BaseFontBatch.SamplerState
getset

在文件 BaseFontBatch.cs13 行定义.


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