MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / DrawEdges

Function DrawEdges

editor/drawworld.cpp:486–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484void DrawEdges(int room_color = -1);
485
486void DrawEdges(int room_color) {
487 int i, type;
488 seg_edge *e;
489 ddgr_color edge_colors[] = {FACING_COLOR, NOTFACING_COLOR};
490
491 for (type = N_EDGE_TYPES - 1; type >= 0; type--) {
492 for (i = 0; i < n_used; i++) {
493 e = &edge_list[used_list[i]];
494 if (e->type == type)
495 DrawLine((room_color == -1) ? edge_colors[type] : room_color, e->v0, e->v1);
496 }
497 }
498}
499
500void DrawAllRooms(vector *view_target, float rad);
501void DrawRoom(room *rp, int room_type = -1);

Callers 2

DrawRoomFunction · 0.85
DrawRoomRotatedFunction · 0.85

Calls 1

DrawLineFunction · 0.85

Tested by

no test coverage detected