private void RenderStackedLines() { GL.Begin(GL.LINES); while (lines.Count > 0) { int last = lines.Count - 1; LineGL l = lines[last]; lines.RemoveAt(last); if (!DebugRenderChannels.IsChannelActive(l.channel)) { continue; } GL.Color(l.color); GL.Vertex(l.V1); GL.Vertex(l.V2); } GL.End(); }
public void DrawLine(Vector3 v1, Vector3 v2, Color color, DebugRenderChannel channel) { LineGL l = new LineGL(v1, v2, color, channel); lines.Add(l); }