Box2D 3.2.0
A 2D physics engine for games
Loading...
Searching...
No Matches

Data Structures

struct  b2DebugDraw
 This struct holds callbacks you can implement to draw a Box2D world. More...

Enumerations

enum  b2HexColor
 These colors are used for debug draw and mostly match the named SVG colors. More...

Functions

b2HexColor b2GetGraphColor (int index)
 Get the visualization color assigned to a constraint graph color slot.
b2DebugDraw b2DefaultDebugDraw (void)
 Use this to initialize your drawing interface.

Detailed Description

Enumeration Type Documentation

◆ b2HexColor

Function Documentation

◆ b2DefaultDebugDraw()

b2DebugDraw b2DefaultDebugDraw ( void )

Use this to initialize your drawing interface.

This allows you to implement a subset of the drawing functions.

◆ b2GetGraphColor()

b2HexColor b2GetGraphColor ( int index)

Get the visualization color assigned to a constraint graph color slot.

The last index (B2_GRAPH_COLOR_COUNT - 1) is the overflow color.