|
Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
|


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< VertexPositionColorTexture > | TriangleVertices = [] |
| 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.cs 第 2 行定义.
| Engine.Graphics.TexturedBatch2D.TexturedBatch2D | ( | ) |
| void Engine.Graphics.TexturedBatch2D.Flush | ( | bool | clearAfterFlush = true | ) |
| void Engine.Graphics.TexturedBatch2D.QueueBatch | ( | TexturedBatch2D | batch, |
| Matrix? | matrix = null, | ||
| Color? | color = null ) |
| 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.cs 第 101 行定义.
| 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.cs 第 127 行定义.
| 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.cs 第 46 行定义.