HughPH.Box2D
Organised dotnet bindings for Box2D 3.1.0
|
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. | |
delegate void Box2D.Delegates.Unsafe.DrawCircleDelegate | ( | Vec2 | center, |
float | radius, | ||
HexColor | color, | ||
nint | context | ||
) |
Draw a circle.
center | The circle center |
radius | The radius |
color | The color |
context | The context |
delegate void Box2D.Delegates.Unsafe.DrawPointDelegate | ( | Vec2 | p, |
float | size, | ||
HexColor | color, | ||
nint | context | ||
) |
Draw a point.
p | The point |
size | The size |
color | The color |
context | The context |
unsafe delegate void Box2D.Delegates.Unsafe.DrawPolygonDelegate | ( | Vec2 * | vertices, |
int | vertexCount, | ||
HexColor | color, | ||
nint | context | ||
) |
Draw a closed polygon provided in CCW order.
vertices | The vertices |
vertexCount | The vertex count |
color | The color |
context | The context |
delegate void Box2D.Delegates.Unsafe.DrawSegmentDelegate | ( | Vec2 | p1, |
Vec2 | p2, | ||
HexColor | color, | ||
nint | context | ||
) |
Draw a line segment.
p1 | The first point |
p2 | The second point |
color | The color |
context | The context |
delegate void Box2D.Delegates.Unsafe.DrawSolidCapsuleDelegate | ( | Vec2 | p1, |
Vec2 | p2, | ||
float | radius, | ||
HexColor | color, | ||
nint | context | ||
) |
Draw a solid capsule.
p1 | The first point |
p2 | The second point |
radius | The radius |
color | The color |
context | The context |
delegate void Box2D.Delegates.Unsafe.DrawSolidCircleDelegate | ( | Transform | transform, |
float | radius, | ||
HexColor | color, | ||
nint | context | ||
) |
Draw a solid circle.
transform | The transform |
radius | The radius |
color | The color |
context | The context |
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.
transform | The transform |
vertices | The vertices |
vertexCount | The vertex count |
radius | The radius |
color | The color |
context | The context |
delegate void Box2D.Delegates.Unsafe.DrawStringDelegate | ( | Vec2 | p, |
nint | s, | ||
HexColor | color, | ||
nint | context | ||
) |
Draw a string in world space.
p | The point |
s | The string |
color | The color |
context | The context |
delegate void Box2D.Delegates.Unsafe.DrawTransformDelegate | ( | Transform | transform, |
nint | context | ||
) |
Draw a transform.
transform | The transform |
context | The context |
Choose your own length scale