|
| PhysicsDebugDraw (sf::RenderWindow &window) |
|
void | DrawPolygon (const b2Vec2 *vertices, int32 vertexCount, const b2Color &color) |
| Draw a closed polygon provided in CCW order.
|
|
void | DrawSolidPolygon (const b2Vec2 *vertices, int32 vertexCount, const b2Color &color) |
| Draw a solid closed polygon provided in CCW order.
|
|
void | DrawCircle (const b2Vec2 ¢er, float radius, const b2Color &color) |
| Draw a circle.
|
|
void | DrawSolidCircle (const b2Vec2 ¢er, float radius, const b2Vec2 &axis, const b2Color &color) |
| Draw a solid circle.
|
|
void | DrawSegment (const b2Vec2 &p1, const b2Vec2 &p2, const b2Color &color) |
| Draw a line segment.
|
|
void | DrawTransform (const b2Transform &xf) |
| Draw a transform. Choose your own length scale.
|
|
void | DrawPoint (const b2Vec2 &p, float size, const b2Color &color) |
|
|
static sf::Color | GLColorToSFML (const b2Color &color, sf::Uint8 alpha=255) |
| Convert Box2D's OpenGL style color definition[0-1] to SFML's color definition[0-255], with optional alpha byte[Default - opaque].
|
|
static sf::Vector2f | B2VecToSFVec (const b2Vec2 &vector, bool scaleToPixels=true) |
| Convert Box2D's vector to SFML vector [Default - scales the vector up by SCALE constants amount].
|
|
The documentation for this class was generated from the following files: