Exemplo n.º 1
0
 private void glControl1_Load(object sender, EventArgs e)
 {
     glContextCreated = true;
     renderer.Init();
     renderer.SetModel(model);
     SetupViewport();
 }
Exemplo n.º 2
0
 private void glControl1_Load(object sender, EventArgs e)
 {
     if (noPMView)
     {
         return;
     }
     if (!glContextCreated)
     {
         glControl1.Location      = glControlStandin.Location;
         glControl1.Size          = glControlStandin.Size;
         glControlStandin.Visible = false;
     }
     glContextCreated = true;
     modelRenderer.Init();
     SetupViewport();
 }