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

Function DrawWireframeList

editor/jaytest.cpp:41–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39extern SoundLib SndLib;
40
41void DrawWireframeList(grViewport *vp, g3s_point *p, int nv, ddgr_color color) {
42 g3s_point *p1, *p2;
43 int i;
44
45 for (i = 0; i < nv; i++) {
46 p1 = &p[i];
47 p2 = &p[(i + 1) % nv];
48
49 vp->line(color, p1->screenx, p1->screeny, p2->screenx, p2->screeny);
50 }
51}
52
53void RenderTexFrame(grViewport *my_viewport) {
54 int nv, i, t;

Callers 1

RenderWireFrameFunction · 0.85

Calls 1

lineMethod · 0.45

Tested by

no test coverage detected