Ejemplo n.º 1
0
        public void DrawLine(float x1, float y1, float x2, float y2,
                             float width, float r, float g, float b, float a)
        {
            int texture = getTexture(0);

            _graphics.BindTexture2D(texture);
            _graphics.LineWidth(width);
            _line[0] = new GLVertex(new Vector2(x1, y1), _bottomLeft, r, g, b, a);
            _line[1] = new GLVertex(new Vector2(x2, y2), _bottomRight, r, g, b, a);

            drawArrays(PrimitiveMode.Lines, _line);
        }