MCPcopy Create free account
hub / github.com/demoth/jake2 / drawPolyLines

Method drawPolyLines

client/src/main/java/jake2/client/render/fast/Surf.java:166–175  ·  view source on GitHub ↗

Helper method for R_DrawTriangleOutlines().

(glpoly_t p)

Source from the content-addressed store, hash-verified

164 * Helper method for R_DrawTriangleOutlines().
165 */
166 void drawPolyLines(glpoly_t p) {
167 for (int j = 2; j < p.numverts; j++) {
168 gl.glBegin(GL_LINE_STRIP);
169 gl.glVertex3f(p.x(0), p.y(0), p.z(0));
170 gl.glVertex3f(p.x(j - 1), p.y(j - 1), p.z(j - 1));
171 gl.glVertex3f(p.x(j), p.y(j), p.z(j));
172 gl.glVertex3f(p.x(0), p.y(0), p.z(0));
173 gl.glEnd();
174 }
175 }
176
177 /**
178 * R_DrawTriangleOutlines

Callers 1

Calls 6

glBeginMethod · 0.65
glVertex3fMethod · 0.65
glEndMethod · 0.65
xMethod · 0.45
yMethod · 0.45
zMethod · 0.45

Tested by

no test coverage detected