コード例 #1
0
 public Form1()
 {
     InitializeComponent();
     OpenGLControl.InitializeContexts();
     Gl.glShadeModel(Gl.GL_SMOOTH);
     Gl.glClearColor(255, 255, 255, 0f);
     timer.Interval = 15;
 }
コード例 #2
0
 private void MainWindow_Load(object sender, EventArgs e)
 {
     OpenGLControl.InitializeContexts();
     panel1.Dock = DockStyle.Fill;
     panel2.Dock = DockStyle.Right;
     MainWindow_Resize(null, null);
     RedrawTimer.Interval = (int)(1000.0f / (float)Settings.Hz);
     RedrawTimer.Start();
 }