Is it possible for OpenGL to work with a .NET form?

I know that OpenGL can work with the classic window created by CreateWindow and processes the device context (GetDC), but is it possible for OpenGL to work with the .NET form? I want to turn a .NET form into an OpenGL window.

+4
source share
1 answer

Yes it is possible. OpenGL requires a window handle, accessible through the Form.Handle property. To get the device context, call GetDC using this handle.

http://www.codeproject.com/KB/miscctrl/OpenGLViewWinForms.aspx

+3
source

Source: https://habr.com/ru/post/1369364/


All Articles