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); }
protected override void OnPaint(PaintEventArgs e) { VtsGL.wglMakeCurrent(hDC, hRC); Draw?.Invoke(this, e); VtsGL.SwapBuffers(hDC); }