Table of Contents

Class ImmediateDebugRenderSystem

Namespace
Stride.CommunityToolkit.Rendering.DebugShapes
Assembly
Stride.CommunityToolkit.dll
public class ImmediateDebugRenderSystem : GameSystemBase, IDisposable, ICollectorHolder, IGameSystemBase, IComponent, IReferencable, IUpdateable, IDrawable, IContentable
Inheritance
ImmediateDebugRenderSystem
Implements
Inherited Members

Constructors

ImmediateDebugRenderSystem(IServiceRegistry, RenderGroup)

public ImmediateDebugRenderSystem(IServiceRegistry registry, RenderGroup renderGroup = RenderGroup.Group31)

Parameters

registry IServiceRegistry
renderGroup RenderGroup

Properties

MaxPrimitives

public int MaxPrimitives { get; set; }

Property Value

int

MaxPrimitivesWithLifetime

public int MaxPrimitivesWithLifetime { get; set; }

Property Value

int

PrimitiveColor

public Color PrimitiveColor { get; set; }

Property Value

Color

RenderGroup

public RenderGroup RenderGroup { get; set; }

Property Value

RenderGroup

Methods

DrawArrow(Vector3, Vector3, float, float, Color, float, bool, bool)

public void DrawArrow(Vector3 from, Vector3 to, float coneHeight = 0.25, float coneRadius = 0.125, Color color = default, float duration = 0, bool depthTest = true, bool solid = false)

Parameters

from Vector3
to Vector3
coneHeight float
coneRadius float
color Color
duration float
depthTest bool
solid bool

DrawBounds(Vector3, Vector3, Quaternion, Color, float, bool, bool)

public void DrawBounds(Vector3 start, Vector3 end, Quaternion rotation = default, Color color = default, float duration = 0, bool depthTest = true, bool solid = false)

Parameters

start Vector3
end Vector3
rotation Quaternion
color Color
duration float
depthTest bool
solid bool

DrawCapsule(Vector3, float, float, Quaternion, Color, float, bool, bool)

public void DrawCapsule(Vector3 position, float height, float radius, Quaternion rotation = default, Color color = default, float duration = 0, bool depthTest = true, bool solid = false)

Parameters

position Vector3
height float
radius float
rotation Quaternion
color Color
duration float
depthTest bool
solid bool

DrawCircle(Vector3, float, Quaternion, Color, float, bool, bool)

public void DrawCircle(Vector3 position, float radius, Quaternion rotation = default, Color color = default, float duration = 0, bool depthTest = true, bool solid = false)

Parameters

position Vector3
radius float
rotation Quaternion
color Color
duration float
depthTest bool
solid bool

DrawCone(Vector3, float, float, Quaternion, Color, float, bool, bool)

public void DrawCone(Vector3 position, float height, float radius, Quaternion rotation = default, Color color = default, float duration = 0, bool depthTest = true, bool solid = false)

Parameters

position Vector3
height float
radius float
rotation Quaternion
color Color
duration float
depthTest bool
solid bool

DrawCube(Vector3, Vector3, Quaternion, Color, float, bool, bool)

public void DrawCube(Vector3 start, Vector3 size, Quaternion rotation = default, Color color = default, float duration = 0, bool depthTest = true, bool solid = false)

Parameters

start Vector3
size Vector3
rotation Quaternion
color Color
duration float
depthTest bool
solid bool

DrawCylinder(Vector3, float, float, Quaternion, Color, float, bool, bool)

public void DrawCylinder(Vector3 position, float height, float radius, Quaternion rotation = default, Color color = default, float duration = 0, bool depthTest = true, bool solid = false)

Parameters

position Vector3
height float
radius float
rotation Quaternion
color Color
duration float
depthTest bool
solid bool

DrawHalfSphere(Vector3, float, Color, Quaternion, float, bool, bool)

public void DrawHalfSphere(Vector3 position, float radius, Color color = default, Quaternion rotation = default, float duration = 0, bool depthTest = true, bool solid = false)

Parameters

position Vector3
radius float
color Color
rotation Quaternion
duration float
depthTest bool
solid bool

DrawLine(Vector3, Vector3, Color, float, bool)

public void DrawLine(Vector3 start, Vector3 end, Color color = default, float duration = 0, bool depthTest = true)

Parameters

start Vector3
end Vector3
color Color
duration float
depthTest bool

DrawLines(Vector3[], Color?, float, bool)

public void DrawLines(Vector3[] vertices, Color? color = null, float duration = 0, bool depthTest = true)

Parameters

vertices Vector3[]
color Color?
duration float
depthTest bool

DrawQuad(Vector3, Vector2, Quaternion, Color, float, bool, bool)

public void DrawQuad(Vector3 position, Vector2 size, Quaternion rotation = default, Color color = default, float duration = 0, bool depthTest = true, bool solid = false)

Parameters

position Vector3
size Vector2
rotation Quaternion
color Color
duration float
depthTest bool
solid bool

DrawRay(Vector3, Vector3, Color, float, bool)

public void DrawRay(Vector3 start, Vector3 dir, Color color = default, float duration = 0, bool depthTest = true)

Parameters

start Vector3
dir Vector3
color Color
duration float
depthTest bool

DrawSphere(Vector3, float, Color, float, bool, bool)

public void DrawSphere(Vector3 position, float radius, Color color = default, float duration = 0, bool depthTest = true, bool solid = false)

Parameters

position Vector3
radius float
color Color
duration float
depthTest bool
solid bool

Update(GameTime)

This method is called when this game component is updated.

public override void Update(GameTime gameTime)

Parameters

gameTime GameTime

The current timing.