HughPH.Box2D
Organised dotnet bindings for Box2D 3.1.0
Loading...
Searching...
No Matches
Functions
Box2D.Delegates.Unsafe Namespace Reference

Functions

delegate void DrawCircleDelegate (Vec2 center, float radius, HexColor color, nint context)
 Draw a circle.
 
delegate void DrawPointDelegate (Vec2 p, float size, HexColor color, nint context)
 Draw a point.
 
unsafe delegate void DrawPolygonDelegate (Vec2 *vertices, int vertexCount, HexColor color, nint context)
 Draw a closed polygon provided in CCW order.
 
delegate void DrawSegmentDelegate (Vec2 p1, Vec2 p2, HexColor color, nint context)
 Draw a line segment.
 
delegate void DrawSolidCapsuleDelegate (Vec2 p1, Vec2 p2, float radius, HexColor color, nint context)
 Draw a solid capsule.
 
delegate void DrawSolidCircleDelegate (Transform transform, float radius, HexColor color, nint context)
 Draw a solid circle.
 
unsafe delegate void DrawSolidPolygonDelegate (Transform transform, Vec2 *vertices, int vertexCount, float radius, HexColor color, nint context)
 Draw a solid closed polygon provided in CCW order.
 
delegate void DrawStringDelegate (Vec2 p, nint s, HexColor color, nint context)
 Draw a string in world space.
 
delegate void DrawTransformDelegate (Transform transform, nint context)
 Draw a transform.
 

Function Documentation

◆ DrawCircleDelegate()

delegate void Box2D.Delegates.Unsafe.DrawCircleDelegate ( Vec2  center,
float  radius,
HexColor  color,
nint  context 
)

Draw a circle.

Parameters
centerThe circle center
radiusThe radius
colorThe color
contextThe context

◆ DrawPointDelegate()

delegate void Box2D.Delegates.Unsafe.DrawPointDelegate ( Vec2  p,
float  size,
HexColor  color,
nint  context 
)

Draw a point.

Parameters
pThe point
sizeThe size
colorThe color
contextThe context

◆ DrawPolygonDelegate()

unsafe delegate void Box2D.Delegates.Unsafe.DrawPolygonDelegate ( Vec2 *  vertices,
int  vertexCount,
HexColor  color,
nint  context 
)

Draw a closed polygon provided in CCW order.

Parameters
verticesThe vertices
vertexCountThe vertex count
colorThe color
contextThe context

◆ DrawSegmentDelegate()

delegate void Box2D.Delegates.Unsafe.DrawSegmentDelegate ( Vec2  p1,
Vec2  p2,
HexColor  color,
nint  context 
)

Draw a line segment.

Parameters
p1The first point
p2The second point
colorThe color
contextThe context

◆ DrawSolidCapsuleDelegate()

delegate void Box2D.Delegates.Unsafe.DrawSolidCapsuleDelegate ( Vec2  p1,
Vec2  p2,
float  radius,
HexColor  color,
nint  context 
)

Draw a solid capsule.

Parameters
p1The first point
p2The second point
radiusThe radius
colorThe color
contextThe context

◆ DrawSolidCircleDelegate()

delegate void Box2D.Delegates.Unsafe.DrawSolidCircleDelegate ( Transform  transform,
float  radius,
HexColor  color,
nint  context 
)

Draw a solid circle.

Parameters
transformThe transform
radiusThe radius
colorThe color
contextThe context

◆ DrawSolidPolygonDelegate()

unsafe delegate void Box2D.Delegates.Unsafe.DrawSolidPolygonDelegate ( Transform  transform,
Vec2 *  vertices,
int  vertexCount,
float  radius,
HexColor  color,
nint  context 
)

Draw a solid closed polygon provided in CCW order.

Parameters
transformThe transform
verticesThe vertices
vertexCountThe vertex count
radiusThe radius
colorThe color
contextThe context

◆ DrawStringDelegate()

delegate void Box2D.Delegates.Unsafe.DrawStringDelegate ( Vec2  p,
nint  s,
HexColor  color,
nint  context 
)

Draw a string in world space.

Parameters
pThe point
sThe string
colorThe color
contextThe context

◆ DrawTransformDelegate()

delegate void Box2D.Delegates.Unsafe.DrawTransformDelegate ( Transform  transform,
nint  context 
)

Draw a transform.

Parameters
transformThe transform
contextThe context

Choose your own length scale