private void RenderStackedQuads() { GL.Begin(GL.QUADS); while (quads.Count > 0) { int last = quads.Count - 1; QuadGL q = quads[last]; quads.RemoveAt(last); if (!DebugRenderChannels.IsChannelActive(q.channel)) { continue; } GL.Color(q.color); GL.Vertex(q.V3); GL.Vertex(q.V4); GL.Vertex(q.V2); GL.Vertex(q.V1); } GL.End(); }
public void DrawQuad(Vector3 v1, Vector3 v2, Vector3 v3, Vector3 v4, Color color, DebugRenderChannel channel) { QuadGL q = new QuadGL(v1, v2, v3, v4, color, channel); quads.Add(q); }