예제 #1
0
 protected override void OnPaint(PaintEventArgs e)
 {
     VtsGL.wglMakeCurrent(hDC, hRC);
     //VtsGL.glViewport(0, 0, Width, Height);
     //VtsGL.glClearColor(1, 0, 0, 0);
     //VtsGL.glClear(0x4000); // GL_COLOR_BUFFER_BIT
     Draw?.Invoke(this, e);
     VtsGL.SwapBuffers(hDC);
 }
예제 #2
0
 protected override void OnPaint(PaintEventArgs e)
 {
     VtsGL.wglMakeCurrent(hDC, hRC);
     Draw?.Invoke(this, e);
     VtsGL.SwapBuffers(hDC);
 }