Vixen
02b45cc4
csharp
public readonly record struct MeshShapeGeometry

Where one shape's geometry sits in a MeshInstanceRenderer's buffers.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Two ranges in one allocation, which is what keeps a wireframe view free of a second buffer. The edges are the same vertices in a different order, so they are index data and nothing else — appended to the same slice, drawn with the same vertex offset, and paid for once at registration whether or not anybody presses the key.

Counts rather than offsets, because the offsets are derivable and two numbers that must agree are one too many: the triangles start at Slice.FirstIndex and the edges at Slice.FirstIndex + TriangleIndices.

Fields and properties (6)

  • public GeometrySlice Slice

    The vertices and both index ranges, as the geometry buffer allocated them.

  • public int TriangleIndices

    How many indices the surface is drawn from.

  • public int EdgeIndices

    How many indices its wireframe is drawn from, immediately after the triangles.

  • public bool IsValid

    Whether this names a registered shape.

  • public int TriangleCount

    How many triangles the surface has.

  • public int SegmentCount

    How many segments the wireframe has.

Methods (1)

  • public MeshShapeGeometry(GeometrySlice Slice, int TriangleIndices, int EdgeIndices)

    Where one shape's geometry sits in a MeshInstanceRenderer's buffers.

Used by (4)

  • MeshInstanceBatchVixen.Rendering
  • MeshInstanceRendererVixen.Rendering
  • MeshInstanceRendererTestsVixen.Rendering.Tests
  • ScenePresenterVixen.Editor.App