Suppose I want to render OpenGL scene to some windowed application not based on Windows.Forms (for example - Gtk#). Is it possible for me to do so? As far as I understand, the GLContext class is specifically written to wrap a SWF Control (p.s. - if so, why not to subclass Control?), but there is no simplified generic way to wrap a window handle.
I would like to be able to define a window handle as my render context since the low-level windowing systems (X11/Win32) both use integers as window handles, and most toolkits allow me to retrieve the low-level window handle of just about any element (Control in Winforms, Widget in Gtk#, etc...)
This will allow users the freedom to select the toolkit they want to use. It will be better if GLContext won't wrap a control, but a integer defining a window handle, and have a set of complementary assemblies, each defining an element in a different toolkit, that is an "opengl drawing canvas" for that toolkit.