Esempio n. 1
0
 private void EmptyWindow_Load(object sender, EventArgs e)
 {
     DoubleBuffered = true;
     _Context       = Ratchet.Drawing.OpenGL.WGL.CreateContext(this);
     _Context.MakeCurrent();
     glClear      = Ratchet.Drawing.OpenGL.WGL.GetProcAddress <glClearType>("glClear");
     glClearColor = Ratchet.Drawing.OpenGL.WGL.GetProcAddress <glClearColorType>("glClearColor");
 }
Esempio n. 2
0
 private void EmptyWindow_Paint(object sender, PaintEventArgs e)
 {
     _Context.MakeCurrent();
     Clear(0.1f, 0.3f, 1.0f, 1.0f);
     _Context.SwapBuffers();
 }