add ClearDraw
This commit is contained in:
parent
582e202912
commit
a03c09d797
|
|
@ -79,6 +79,8 @@ public:
|
|||
/// @param xf a transform.
|
||||
virtual void DrawTransform(const b2Transform& xf) = 0;
|
||||
|
||||
/// Clear draw commands
|
||||
virtual void ClearDraw() = 0;
|
||||
protected:
|
||||
uint32 m_drawFlags;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1139,6 +1139,8 @@ void b2World::DrawDebugData()
|
|||
return;
|
||||
}
|
||||
|
||||
g_debugDraw->ClearDraw();
|
||||
|
||||
uint32 flags = g_debugDraw->GetFlags();
|
||||
|
||||
if (flags & b2Draw::e_shapeBit)
|
||||
|
|
|
|||
Loading…
Reference in New Issue