示例#1
0
 private void glControl1_Render(object sender, OpenGL.GlControlEventArgs e)
 {
     GlMain.Draw();
     if (glControl1.Animation != GlMain.Animating)
     {
         glControl1.Animation = GlMain.Animating;
     }
 }
示例#2
0
 private void glControl1_ContextDestroying(object sender, OpenGL.GlControlEventArgs e)
 {
     GlMain.Destroy();
 }
示例#3
0
 private void glControl1_ContextCreated(object sender, OpenGL.GlControlEventArgs e)
 {
     GlMain.Initialize();
     GlMain.Resize(glControl1.Width, glControl1.Height);
 }