Table of Contents

Class ImmediateDebugPrimitives

Namespace
Stride.CommunityToolkit.Rendering.DebugShapes
Assembly
Stride.CommunityToolkit.dll
public static class ImmediateDebugPrimitives
Inheritance
ImmediateDebugPrimitives

Methods

CopyFromGeometricPrimitive(GeometricMeshData<VertexPositionNormalTexture>, ref VertexPositionTexture[], ref int[])

public static void CopyFromGeometricPrimitive(GeometricMeshData<VertexPositionNormalTexture> primitiveData, ref VertexPositionTexture[] vertices, ref int[] indices)

Parameters

primitiveData GeometricMeshData<VertexPositionNormalTexture>
vertices VertexPositionTexture[]
indices int[]

GenerateCapsule(float, float, int, int)

public static (VertexPositionTexture[] Vertices, int[] Indices) GenerateCapsule(float length, float radius, int tesselation, int uvSplits = 4)

Parameters

length float
radius float
tesselation int
uvSplits int

Returns

(VertexPositionTexture[] Vertices, int[] Indices)

GenerateCircle(float, int, int, float, bool, int)

public static (VertexPositionTexture[] Vertices, int[] Indices) GenerateCircle(float radius = 0.5, int tesselations = 16, int uvSplits = 0, float yOffset = 0, bool isFlipped = false, int uvOffset = 0)

Parameters

radius float
tesselations int
uvSplits int
yOffset float
isFlipped bool
uvOffset int

Returns

(VertexPositionTexture[] Vertices, int[] Indices)

GenerateCone(float, float, int, int, int)

public static (VertexPositionTexture[] Vertices, int[] Indices) GenerateCone(float height, float radius, int tesselations, int uvSplits = 4, int uvSplitsBottom = 0)

Parameters

height float
radius float
tesselations int
uvSplits int
uvSplitsBottom int

Returns

(VertexPositionTexture[] Vertices, int[] Indices)

GenerateCube(float)

public static (VertexPositionTexture[] Vertices, int[] Indices) GenerateCube(float size = 1)

Parameters

size float

Returns

(VertexPositionTexture[] Vertices, int[] Indices)

GenerateCylinder(float, float, int, int, int?)

public static (VertexPositionTexture[] Vertices, int[] Indices) GenerateCylinder(float height = 1, float radius = 0.5, int tesselations = 16, int uvSplits = 4, int? uvSidesForCircle = null)

Parameters

height float
radius float
tesselations int
uvSplits int
uvSidesForCircle int?

Returns

(VertexPositionTexture[] Vertices, int[] Indices)

GenerateQuad(float, float)

public static (VertexPositionTexture[] Vertices, int[] Indices) GenerateQuad(float width, float height)

Parameters

width float
height float

Returns

(VertexPositionTexture[] Vertices, int[] Indices)

GenerateSphere(float, int, int, int)

public static (VertexPositionTexture[] Vertices, int[] Indices) GenerateSphere(float radius = 0.5, int tesselations = 16, int uvSplits = 4, int uvSplitOffsetVertical = 0)

Parameters

radius float
tesselations int
uvSplits int
uvSplitOffsetVertical int

Returns

(VertexPositionTexture[] Vertices, int[] Indices)

GetCircleVector(int, int)

public static Vector3 GetCircleVector(int i, int tessellation)

Parameters

i int
tessellation int

Returns

Vector3