Пример #1
0
 private void FW_Paint(object sender, PaintEventArgs e)
 {
     Glut.glutInit();
     Glut.glutInitDisplayMode(Glut.GLUT_RGB | Glut.GLUT_DOUBLE | Glut.GLUT_DEPTH);
     Gl.glViewport(0, 0, FW.Width, FW.Height);
     Gl.glClearColor(0f, 0f, 1f, 1);
     Gl.glClear(Gl.GL_COLOR_BUFFER_BIT);
     Glut.glutWireSphere(2, 32, 32);
     Gl.glFlush();
     FW.Invalidate();
 }