public static DDVertex FromPoint(Vec2 p, Color color)
        {
            DDVertex ddv = new DDVertex();

            ddv.m_positions    = new Vec2[2];
            ddv.m_positions[0] = p;
            ddv.m_color        = color;
            return(ddv);
        }
        public static DDVertex FromLine(Vec2 begin, Vec2 end, Color color)
        {
            DDVertex ddv = new DDVertex();

            ddv.m_positions    = new Vec2[2];
            ddv.m_positions[0] = begin;
            ddv.m_positions[1] = end;
            ddv.m_color        = color;
            return(ddv);
        }
 public void DrawPoint(Vec2 point, Color color)
 {
     m_vertexListBatch.Add(DDVertex.FromPoint(point, color));
 }
 public void DrawLine(Vec2 p1, Vec2 p2, Color color)
 {
     m_lineListBatch.Add(DDVertex.FromLine(p1, p2, color));
 }