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

Function DrawFaceEdge

editor/drawworld.cpp:690–702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688}
689
690void DrawFaceEdge(ddgr_color color, room *rp, int facenum, int edgenum) {
691 face *fp = &rp->faces[facenum];
692 int v0, v1;
693
694 v0 = fp->face_verts[edgenum];
695 v1 = fp->face_verts[(edgenum + 1) % fp->num_verts];
696
697 g3_RotatePoint((g3Point *)&World_point_buffer[v0], &rp->verts[v0]);
698 g3_RotatePoint((g3Point *)&World_point_buffer[v1], &rp->verts[v1]);
699
700 if (!(World_point_buffer[v0].p3_codes & World_point_buffer[v1].p3_codes))
701 DrawLine(color, v0, v1);
702}
703
704// Draw the objects in a room as spheres
705void DrawRoomObjects(room *rp) {

Callers 1

DrawWorldFunction · 0.85

Calls 2

g3_RotatePointFunction · 0.85
DrawLineFunction · 0.85

Tested by

no test coverage detected