added debug drawing of physics world
flag check using internal::hasBitFlags in BaseRenderContext class