[core] Implement MapDebugOptions::Wireframe

Together with MapDebugOptions::Collision, provides "wireframe" rendering
output so all drawn objects are visible. This mode ignores the line
width, background and fill colors for better visualization.

Fixes #4359.
This commit is contained in:
Bruno de Oliveira Abinader
2016-05-21 12:01:24 +03:00
parent 645dd25d0b
commit 7143408f69
6 changed files with 51 additions and 22 deletions

View File

@@ -796,8 +796,10 @@ void Map::setDebug(MapDebugOptions debugOptions) {
}
void Map::cycleDebugOptions() {
if (impl->debugOptions & MapDebugOptions::Collision)
if (impl->debugOptions & MapDebugOptions::Wireframe)
impl->debugOptions = MapDebugOptions::NoDebug;
else if (impl->debugOptions & MapDebugOptions::Collision)
impl->debugOptions = MapDebugOptions::Collision | MapDebugOptions::Wireframe;
else if (impl->debugOptions & MapDebugOptions::Timestamps)
impl->debugOptions = impl->debugOptions | MapDebugOptions::Collision;
else if (impl->debugOptions & MapDebugOptions::ParseStatus)