Пример #1
0
 static bool terminated = false;         // application terminates gracefully when this is true
 protected override void OnLoad(EventArgs e)
 {
     // called during application initialization
     GL.Hint(HintTarget.PerspectiveCorrectionHint, HintMode.Nicest);
     ClientSize    = new Size(1280, 720);
     app           = new MyApplication();
     app.screen    = new Surface(Width, Height);
     Sprite.target = app.screen;
     screenID      = app.screen.GenTexture();
     app.Init();
 }
Пример #2
0
 static bool terminated = false;         // application terminates gracefully when this is true
 protected override void OnLoad(EventArgs e)
 {
     // called during application initialization
     GL.ClearColor(Color.Black);
     GL.Enable(EnableCap.Texture2D);
     GL.Disable(EnableCap.DepthTest);
     GL.Hint(HintTarget.PerspectiveCorrectionHint, HintMode.Nicest);
     ClientSize    = new Size(1280, 1280);
     app           = new MyApplication();
     app.screen    = new Surface(Width, Height);
     Sprite.target = app.screen;
     screenID      = app.screen.GenTexture();
     app.Init();
 }