|
Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
|


Public 成员函数 | |
| FlatBatch3D () | |
| void | QueueSphere (Vector3 center, float radius, int slices, int stacks, Color color) |
| 绘制球 | |
| void | QueueSphereWithLines (Vector3 center, Color color, float radius=1, int longitudeLines=20, int latitudeLines=20, int draw=0) |
| 绘制球线框 | |
| void | QueueCircle (Vector3 center, float radius, int segments, Color color, bool useLineStrip=true) |
| 绘制圆 | |
| void | QueueCurvedCylinder (Vector3 start, Vector3 end, float radius, Color color, int segments=12, bool drawTopAndBottom=true) |
| 绘制圆柱 | |
| void | QueueBatchTriangles (FlatBatch3D batch, Matrix? matrix=null, Color? color=null) |
| void | QueueTriangles (IEnumerable< Vector3 > points, Color color) |
| 每三个顶点为一个三角形,请确保输入的顶点数量为 3 的倍数 | |
| void | QueueTriangles (IEnumerable< VertexPositionColor > vertices) |
| 每三个顶点为一个三角形,请确保输入的顶点数量为 3 的倍数 | |
| void | QueueBatchLines (FlatBatch3D batch, Matrix? matrix=null, Color? color=null) |
| void | QueueLines (IEnumerable< Vector3 > points, Color color) |
| 每两个顶点为一个线段,请确保输入的顶点数量为 2 的倍数 | |
| void | QueueLines (IEnumerable< VertexPositionColor > vertices) |
| 每两个顶点为一个线段,请确保输入的顶点数量为 2 的倍数 | |
| void | QueueBatch (FlatBatch3D batch, Matrix? matrix=null, Color? color=null) |
| void | QueueLine (Vector3 p1, Vector3 p2, Color color) |
| void | QueueLine (Vector3 p1, Vector3 p2, Color color1, Color color2) |
| void | QueueLineStrip (IEnumerable< Vector3 > points, Color color) |
| void | QueueLineStrip (IEnumerable< VertexPositionColor > vertices) |
| void | QueueTriangle (Vector3 p1, Vector3 p2, Vector3 p3, Color color) |
| void | QueueTriangle (Vector3 p1, Vector3 p2, Vector3 p3, Color color1, Color color2, Color color3) |
| void | QueueQuad (Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, Color color1, Color color2, Color color3, Color color4) |
| 绘制矩形(支持渐变) | |
| void | QueueQuad (Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, Color color) |
| void | QueueBoundingBox (BoundingBox boundingBox, Color color) |
| void | QueueBoundingFrustum (BoundingFrustum boundingFrustum, Color color) |
| void | QueueCube (Vector3 center, float size, Color color) |
| Public 成员函数 继承自 Engine.Graphics.BaseFlatBatch | |
| 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 (Matrix matrix, Vector4 color, bool clearAfterFlush=true) |
| void | FlushWithDeviceState (Shader shader, bool clearAfterFlush=true) |
| void | TransformLines (Matrix matrix, int start=0, int end=-1) |
| void | TransformLinesColors (Color color, int start=0, int end=-1) |
| 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.BaseFlatBatch | |
| readonly DynamicArray< VertexPositionColor > | LineVertices = [] |
| readonly DynamicArray< int > | LineIndices = [] |
| readonly DynamicArray< VertexPositionColor > | TriangleVertices = [] |
| readonly DynamicArray< int > | TriangleIndices = [] |
| 静态 Public 属性 继承自 Engine.Graphics.BaseFlatBatch | |
| static UnlitShader | m_shader = new(true, false, false, false) |
| 属性 继承自 Engine.Graphics.BaseBatch | |
| int | Layer [get, set] |
| DepthStencilState | DepthStencilState [get, set] |
| RasterizerState | RasterizerState [get, set] |
| BlendState | BlendState [get, set] |
在文件 FlatBatch3D.cs 第 2 行定义.
| Engine.Graphics.FlatBatch3D.FlatBatch3D | ( | ) |
| void Engine.Graphics.FlatBatch3D.QueueBatch | ( | FlatBatch3D | batch, |
| Matrix? | matrix = null, | ||
| Color? | color = null ) |
| void Engine.Graphics.FlatBatch3D.QueueBatchLines | ( | FlatBatch3D | batch, |
| Matrix? | matrix = null, | ||
| Color? | color = null ) |
| void Engine.Graphics.FlatBatch3D.QueueBatchTriangles | ( | FlatBatch3D | batch, |
| Matrix? | matrix = null, | ||
| Color? | color = null ) |
| void Engine.Graphics.FlatBatch3D.QueueBoundingBox | ( | BoundingBox | boundingBox, |
| Color | color ) |
| void Engine.Graphics.FlatBatch3D.QueueBoundingFrustum | ( | BoundingFrustum | boundingFrustum, |
| Color | color ) |
在文件 FlatBatch3D.cs 第 308 行定义.
每两个顶点为一个线段,请确保输入的顶点数量为 2 的倍数
在文件 FlatBatch3D.cs 第 269 行定义.
| void Engine.Graphics.FlatBatch3D.QueueLines | ( | IEnumerable< VertexPositionColor > | vertices | ) |
每两个顶点为一个线段,请确保输入的顶点数量为 2 的倍数
在文件 FlatBatch3D.cs 第 283 行定义.
| void Engine.Graphics.FlatBatch3D.QueueLineStrip | ( | IEnumerable< VertexPositionColor > | vertices | ) |
在文件 FlatBatch3D.cs 第 329 行定义.
| void Engine.Graphics.FlatBatch3D.QueueQuad | ( | Vector3 | p1, |
| Vector3 | p2, | ||
| Vector3 | p3, | ||
| Vector3 | p4, | ||
| Color | color ) |
在文件 FlatBatch3D.cs 第 386 行定义.
| void Engine.Graphics.FlatBatch3D.QueueSphereWithLines | ( | Vector3 | center, |
| Color | color, | ||
| float | radius = 1, | ||
| int | longitudeLines = 20, | ||
| int | latitudeLines = 20, | ||
| int | draw = 0 ) |
绘制球线框
| center | 球心 |
| color | 颜色 |
| radius | 半径 |
| longitudeLines | 经度线 |
| latitudeLines | 纬度线 |
| draw | 0表示全部绘制,1表示只绘制纬线球,2表示只绘制经线球 |
在文件 FlatBatch3D.cs 第 99 行定义.

| void Engine.Graphics.FlatBatch3D.QueueTriangle | ( | Vector3 | p1, |
| Vector3 | p2, | ||
| Vector3 | p3, | ||
| Color | color1, | ||
| Color | color2, | ||
| Color | color3 ) |
在文件 FlatBatch3D.cs 第 352 行定义.
每三个顶点为一个三角形,请确保输入的顶点数量为 3 的倍数
在文件 FlatBatch3D.cs 第 222 行定义.
| void Engine.Graphics.FlatBatch3D.QueueTriangles | ( | IEnumerable< VertexPositionColor > | vertices | ) |
每三个顶点为一个三角形,请确保输入的顶点数量为 3 的倍数
在文件 FlatBatch3D.cs 第 236 行定义.