PDA

View Full Version : OpenGL for Windows Forms



APPLE
10-12-2008, 04:43 PM
Does anyone know how to use OpenGL on a Windows Form?
If you konw,could you give me a simple example?
Thank you!

APPLE
10-13-2008, 04:55 AM
I found a code
http://www.codeproject.com/KB/miscctrl/OpenGLViewWinForms.aspx?display=Print
But I cannot run it, anyone can help me resolve it.

Brolingstanz
10-13-2008, 06:19 AM
There really should be little difference between Forms and vanilla Win32, save you need to use IntPtrs instead of HWND/HDC.

Same is true for WPF, but there you'll need to embed a Forms control in your window to access a window handle.