[Mono-list] - C# / OpenGL and System.Windows.Forms on X11 / Linux

sebastien.dedieu@free.fr sebastien.dedieu@free.fr
Wed, 05 Feb 2003 14:54:34 +0100 (CET)


I wrote a C# binding for OpenGL (GL, GLU and glut) based on
Mono / Linux (If you are interested, see MonoGLo project
on sourceforge : http://sourceforge.net/projects/monoglo).

To open a window, I used the "glutCreateWindow" feature.
Now, on Linux, what I need is to create a new class based on
System.Windows.Forms. To create the OpenGL context on
this canvas, i need to get the X11 Window Id
("typedef XID Window;") of the canvas.

Is there a hack or a simple way to get the XID of the window ?
Thank you for your help.

Sébastien Dedieu

PS: tell me what you think of http://sourceforge.net/projects/monoglo