MCPcopy Create free account
hub / github.com/Meridian59/Meridian59 / DrawMap

Method DrawMap

roomedit/source/mapdc.cpp:1183–1214  ·  view source on GitHub ↗

///////////////////////////////////////////////////// TMapDC ------ Draw the level map centered on (OrigX, OrigY), according to editing mode.

Source from the content-addressed store, hash-verified

1181// editing mode.
1182//
1183void TMapDC::DrawMap (int editmode, SHORT grid, BOOL drawgrid)
1184{
1185 //
1186 // draw the grid
1187 //
1188 if ( drawgrid == TRUE )
1189 DrawMapGrid (grid);
1190
1191 /* draw the linedefs to form the map */
1192 switch (editmode)
1193 {
1194 case OBJ_THINGS:
1195 DrawMapLineDefs (editmode);
1196 break;
1197
1198 case OBJ_LINEDEFS:
1199 DrawMapLineDefs (editmode);
1200 break;
1201
1202 case OBJ_VERTEXES:
1203 DrawMapLineDefs (editmode);
1204 DrawMapVertexes (editmode);
1205 break;
1206
1207 case OBJ_SECTORS:
1208 DrawMapSectors (editmode);
1209 break;
1210 }
1211
1212 // draw in the things
1213 DrawMapThings (editmode);
1214}
1215

Callers 1

PaintMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected