add ClearDraw
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user