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

Public 成员函数

 TexturedBatch2D ()
void QueueBatch (TexturedBatch2D batch, Matrix? matrix=null, Color? color=null)
void QueueTriangle (Vector2 p1, Vector2 p2, Vector2 p3, float depth, Vector2 texCoord1, Vector2 texCoord2, Vector2 texCoord3, Color color)
void QueueTriangle (Vector2 p1, Vector2 p2, Vector2 p3, float depth, Vector2 texCoord1, Vector2 texCoord2, Vector2 texCoord3, Color color1, Color color2, Color color3)
void QueueQuad (Vector2 corner1, Vector2 corner2, float depth, Vector2 texCoord1, Vector2 texCoord2, Color color)
void QueueQuad (Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float depth, Vector2 texCoord1, Vector2 texCoord2, Vector2 texCoord3, Vector2 texCoord4, Color color)
void QueueQuad (Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float depth, Vector2 texCoord1, Vector2 texCoord2, Vector2 texCoord3, Vector2 texCoord4, Color color1, Color color2, Color color3, Color color4)
void Flush (bool clearAfterFlush=true)
Public 成员函数 继承自 Engine.Graphics.BaseTexturedBatch
override bool IsEmpty ()
override void Clear ()
virtual void Flush (Matrix matrix, bool clearAfterFlush=true)
override void Flush (Matrix matrix, Vector4 color, bool clearAfterFlush=true)
void FlushWithDeviceState (bool useAlphaTest, Texture2D texture, SamplerState samplerState, Matrix matrix, Vector4 color, bool clearAfterFlush=true)
void FlushWithDeviceState (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)
Public 成员函数 继承自 Engine.Graphics.BaseBatch
bool IsEmpty ()
void Clear ()
void Flush (Matrix matrix, Vector4 color, bool clearAfterFlush=true)

额外继承的成员函数

Public 属性 继承自 Engine.Graphics.BaseTexturedBatch
readonly DynamicArray< VertexPositionColorTextureTriangleVertices = []
readonly DynamicArray< int > TriangleIndices = []
静态 Public 属性 继承自 Engine.Graphics.BaseTexturedBatch
static UnlitShader m_shader = new(true, true, false, false)
static UnlitShader m_shaderAlphaTest = new(true, true, false, true)
属性 继承自 Engine.Graphics.BaseTexturedBatch
Texture2D Texture [get, set]
bool UseAlphaTest [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]

详细描述

在文件 TexturedBatch2D.cs2 行定义.

构造及析构函数说明

◆ TexturedBatch2D()

Engine.Graphics.TexturedBatch2D.TexturedBatch2D ( )

在文件 TexturedBatch2D.cs3 行定义.

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

成员函数说明

◆ Flush()

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

在文件 TexturedBatch2D.cs156 行定义.

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

◆ QueueBatch()

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

在文件 TexturedBatch2D.cs10 行定义.

函数调用图:

◆ QueueQuad() [1/3]

void Engine.Graphics.TexturedBatch2D.QueueQuad ( Vector2 corner1,
Vector2 corner2,
float depth,
Vector2 texCoord1,
Vector2 texCoord2,
Color color )

在文件 TexturedBatch2D.cs68 行定义.

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

◆ QueueQuad() [2/3]

void Engine.Graphics.TexturedBatch2D.QueueQuad ( Vector2 p1,
Vector2 p2,
Vector2 p3,
Vector2 p4,
float depth,
Vector2 texCoord1,
Vector2 texCoord2,
Vector2 texCoord3,
Vector2 texCoord4,
Color color )

在文件 TexturedBatch2D.cs101 行定义.

◆ QueueQuad() [3/3]

void Engine.Graphics.TexturedBatch2D.QueueQuad ( Vector2 p1,
Vector2 p2,
Vector2 p3,
Vector2 p4,
float depth,
Vector2 texCoord1,
Vector2 texCoord2,
Vector2 texCoord3,
Vector2 texCoord4,
Color color1,
Color color2,
Color color3,
Color color4 )

在文件 TexturedBatch2D.cs127 行定义.

◆ QueueTriangle() [1/2]

void Engine.Graphics.TexturedBatch2D.QueueTriangle ( Vector2 p1,
Vector2 p2,
Vector2 p3,
float depth,
Vector2 texCoord1,
Vector2 texCoord2,
Vector2 texCoord3,
Color color )

在文件 TexturedBatch2D.cs26 行定义.

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

◆ QueueTriangle() [2/2]

void Engine.Graphics.TexturedBatch2D.QueueTriangle ( Vector2 p1,
Vector2 p2,
Vector2 p3,
float depth,
Vector2 texCoord1,
Vector2 texCoord2,
Vector2 texCoord3,
Color color1,
Color color2,
Color color3 )

在文件 TexturedBatch2D.cs46 行定义.


该类的文档由以下文件生成: