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
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
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
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
Returns
- (VertexPositionTexture[] Vertices, int[] Indices)
GenerateQuad(float, float)
public static (VertexPositionTexture[] Vertices, int[] Indices) GenerateQuad(float width, float height)
Parameters
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
Returns
- (VertexPositionTexture[] Vertices, int[] Indices)
GetCircleVector(int, int)
public static Vector3 GetCircleVector(int i, int tessellation)