#include <b2Draw.h>
Public Types | |
enum | { e_shapeBit = 0x0001, e_jointBit = 0x0002, e_aabbBit = 0x0004, e_pairBit = 0x0008, e_centerOfMassBit = 0x0010 } |
Public Member Functions | |
void | AppendFlags (uint32 flags) |
Append flags to the current flags. More... | |
b2Draw () | |
void | ClearFlags (uint32 flags) |
Clear flags from the current flags. More... | |
virtual void | DrawCircle (const b2Vec2 ¢er, float32 radius, const b2Color &color)=0 |
Draw a circle. More... | |
virtual void | DrawPolygon (const b2Vec2 *vertices, int32 vertexCount, const b2Color &color)=0 |
Draw a closed polygon provided in CCW order. More... | |
virtual void | DrawSegment (const b2Vec2 &p1, const b2Vec2 &p2, const b2Color &color)=0 |
Draw a line segment. More... | |
virtual void | DrawSolidCircle (const b2Vec2 ¢er, float32 radius, const b2Vec2 &axis, const b2Color &color)=0 |
Draw a solid circle. More... | |
virtual void | DrawSolidPolygon (const b2Vec2 *vertices, int32 vertexCount, const b2Color &color)=0 |
Draw a solid closed polygon provided in CCW order. More... | |
virtual void | DrawTransform (const b2Transform &xf)=0 |
uint32 | GetFlags () const |
Get the drawing flags. More... | |
void | SetFlags (uint32 flags) |
Set the drawing flags. More... | |
virtual | ~b2Draw () |
Protected Attributes | |
uint32 | m_drawFlags |
Implement and register this class with a b2World to provide debug drawing of physics entities in your game.
anonymous enum |
b2Draw::b2Draw | ( | ) |
Definition at line 21 of file b2Draw.cpp.
Append flags to the current flags.
Definition at line 36 of file b2Draw.cpp.
Clear flags from the current flags.
Definition at line 41 of file b2Draw.cpp.
|
pure virtual |
Draw a circle.
|
pure virtual |
Draw a closed polygon provided in CCW order.
|
pure virtual |
Draw a line segment.
|
pure virtual |
Draw a solid circle.
|
pure virtual |
Draw a solid closed polygon provided in CCW order.
|
pure virtual |
Draw a transform. Choose your own length scale.
xf | a transform. |
uint32 b2Draw::GetFlags | ( | ) | const |
Get the drawing flags.
Definition at line 31 of file b2Draw.cpp.
Set the drawing flags.
Definition at line 26 of file b2Draw.cpp.