[.net] OpenGL in a form

Started by
1 comment, last by iliak 16 years, 10 months ago
Hi Don't know if it's the good forum, but let's give a shot... I can render OpenGL stuff in a System::Windows::Forms::Form but I can't in a (let's say) System::Windows::Forms::Panel. I want to render in a Panel because I defines its Dock style as Fill, so it resizes automatically. Does any one have an example ? Thx
- Iliak -
[ ArcEngine: An open source .Net gaming framework ]
[ Dungeon Eye: An open source remake of Eye of the Beholder II ]
Advertisement
How do you create the opengl context? If Panel exposes the window handle as a public property (like Form and Control do), then you can use that to create the opengl context using the wgl* functions.

[OpenTK: C# OpenGL 4.4, OpenGL ES 3.0 and OpenAL 1.1. Now with Linux/KMS support!]

Yes, as always taking the problem by the wrong side....

Thank you !
- Iliak -
[ ArcEngine: An open source .Net gaming framework ]
[ Dungeon Eye: An open source remake of Eye of the Beholder II ]

This topic is closed to new replies.

Advertisement