HughPH.Box2D
Organised dotnet bindings for Box2D 3.1.0
Loading...
Searching...
No Matches
Protected Member Functions | List of all members
Box2D.DebugDrawGenericBase< TContext > Class Template Referenceabstract

Base class for DebugDrawGeneric implementations - i.e. those that receive a managed type context. More...

Inheritance diagram for Box2D.DebugDrawGenericBase< TContext >:
Inheritance graph
[legend]
Collaboration diagram for Box2D.DebugDrawGenericBase< TContext >:
Collaboration graph
[legend]

Protected Member Functions

 DebugDrawGenericBase (TContext context)
 Constructor for DebugDrawGenericBase.
 
void DrawPolygon (ReadOnlySpan< Vec2 > vertices, HexColor color, TContext context)
 Callback function to draw a closed polygon provided in CCW order.
 
void DrawSolidPolygon (Transform transform, ReadOnlySpan< Vec2 > vertices, float radius, HexColor color, TContext context)
 Callback function to draw a solid closed polygon provided in CCW order.
 
void DrawCircle (Vec2 center, float radius, HexColor color, TContext context)
 Callback function to draw a circle.
 
void DrawSolidCircle (Transform transform, float radius, HexColor color, TContext context)
 Callback function to draw a solid circle.
 
void DrawSolidCapsule (Vec2 center1, Vec2 center2, float radius, HexColor color, TContext context)
 Callback function to draw a solid capsule.
 
void DrawSegment (Vec2 p1, Vec2 p2, HexColor color, TContext context)
 Callback function to draw a line segment.
 
void DrawTransform (Transform transform, TContext context)
 Callback function to draw a transform. Choose your own length scale.
 
void DrawPoint (Vec2 p, float size, HexColor color, TContext context)
 Callback function to draw a point.
 
void DrawString (Vec2 p, string? s, HexColor color, TContext context)
 Callback function to draw a string in world space.
 

Additional Inherited Members

- Properties inherited from Box2D.DebugDraw
ref AABB DrawingBounds [get]
 Drawing bounds for the debug draw.
 
bool UseDrawingBounds [get, set]
 Option to restrict drawing to a rectangular region. May suffer from unstable depth sorting.
 
bool DrawShapes [get, set]
 Option to draw shapes.
 
bool DrawJoints [get, set]
 Option to draw joints.
 
bool DrawJointExtras [get, set]
 Option to draw additional information for joints.
 
bool DrawBounds [get, set]
 Option to draw the bounding boxes for shapes.
 
bool DrawMass [get, set]
 Option to draw the mass and center of mass of dynamic bodies.
 
bool DrawBodyNames [get, set]
 Option to draw body names.
 
bool DrawContacts [get, set]
 Option to draw contact points.
 
bool DrawGraphColors [get, set]
 Option to visualize the graph coloring used for contacts and joints.
 
bool DrawContactNormals [get, set]
 Option to draw contact normals.
 
bool DrawContactImpulses [get, set]
 Option to draw contact normal impulses.
 
bool DrawFrictionImpulses [get, set]
 Option to draw contact friction impulses.
 
bool DrawContactFeatures [get, set]
 Option to draw contact feature ids.
 
bool DrawIslands [get, set]
 Option to draw contact friction impulses.
 

Detailed Description

Base class for DebugDrawGeneric implementations - i.e. those that receive a managed type context.

Type Constraints
TContext :class 

Constructor & Destructor Documentation

◆ DebugDrawGenericBase()

Box2D.DebugDrawGenericBase< TContext >.DebugDrawGenericBase ( TContext  context)
inlineprotected

Constructor for DebugDrawGenericBase.

Parameters
contextThe context object to be passed to the callback functions.

The documentation for this class was generated from the following file: