我想画一条简单的线。所以我有这个代码,如下所示。但是当我运行代码时,我在表单上看不到任何东西。
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            drawLine();   
        }
        private void drawLine() {
            GL.glClear(GL.GL_COLOR_BUFFER_BIT);
            GL.glBegin(GL.GL_LINES);
            GL.glVertex3f(100.0f, 100.0f, 0.0f); // origin of the line
            GL.glVertex3f(200.0f, 140.0f, 5.0f); // ending point of the line
            GL.glEnd(); 
        }
    }
我应该怎么办?