MCPcopy Create free account
hub / github.com/assaultcube/AC / line

Function line

source/src/rendergl.cpp:196–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194#include "varray.h"
195
196void line(int x1, int y1, float z1, int x2, int y2, float z2)
197{
198 glBegin(GL_TRIANGLE_STRIP);
199 glVertex3f((float)x1, (float)y1, z1);
200 glVertex3f((float)x1, y1+0.01f, z1);
201 glVertex3f((float)x2, (float)y2, z2);
202 glVertex3f((float)x2, y2+0.01f, z2);
203 glEnd();
204 xtraverts += 4;
205}
206
207void line(int x1, int y1, int x2, int y2, color *c)
208{

Callers 4

renderMethod · 0.85
cursorupdateFunction · 0.85
loopvFunction · 0.85
DrawNearWaypointsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected