From: Lloyd D. <ll...@ga...> - 2002-11-26 09:55:05
|
Hi, First I want to say I didn't use GLUT at all. I write CsGL to be very neatly integrated in the System.Windows.Form hierarchy. In my mind a GL control should be just like any other Control. And here it is, you just create an OpenGLControl, a subclass of System.Windows.Forms.Control, a good citizen in WinForm population. So you do need WinForm. I know I write it ! And you could put as many OpenGLControl in you .NET application as you want, and wherever you want. (in a Button ?) try to do that with GLUT ! However it's very modular, the OpenGLContext, the crucial and only OS dependant OpenGL object doesn't depends on Winform. With a minimal amount of work you could do a Gtk#, or GLUT version of it. BTW, if I had to choose a multiplatform environment to write an GLControl, I had choosed SDL (http://www.libsdl.org) library (not GLUT). But I didn't do it because WinForm has many advantage over SDL (yet), Winform could have mutliple windows ! Winforms could have transparent and odly shaped window ! SDL cannot do the above. Anyway, now I have a good network (at last, just recently) and I will try to upgrade CsGL to mono/FreeBSD as soon as possible, Cheers, Lloyd PS: BTW I don't know about Gtk# and I don't think I will have the time to investigate... :-( I will wait and go for mono/Winform. ----- Original Message ----- From: "Freddy BL" <fre...@ho...> To: <mg...@st...> Cc: <csg...@li...> Sent: Tuesday, November 26, 2002 8:24 PM Subject: Re: [Csgl-users] CsGL and Mono > Hi Michael! > > > >I have tried CsGL in Mono. For now it doesn't work. Th ereason for this > >is that Mono has not implemented Windows.Forms yet. > > Why do it need Windows.Forms? > In C/C++ you can program with GLUT platformindepoendent. > And if you want to use glx.h or wingl.h instead of this, you can integrate > OpenGL in _any_ GUI! > In C/C++ it was integrated in Gtk+, Qt and FLTK, Fox, etc. > Why need the C#-Binding a special GUI? > > > > There are plans to use Wine or GTK to do it. > > But why do you need this GUI? > With GLUT it can run platformindependent. > And _if_ it is hard to integrate OpenGL in the special GUIs, _than_ it is > the job for the Gtk#-Team, Qt#-Team or Mono-Winforms-Team. > But it is the job of the CsGL-Team to make the CsGL for any platform and any > .net-implemenatation avaible. And this is possible - with GLUT. GLUT is > platformindependent. That OpenGL and special GUIs work together, is _not_ > the job of CsGL - I think. > > > >But because that aspect of Mono C# specification has not yet been > >implemented, > >CsGL won't work since it depends on that. > > And _why_ depends it on Windows.Forms? > > > >I had asked this question to Lloyd on the sourceforge forum > > Have you a link to your post there? > > > >and he said that it might be possible to use the GtkSharp library to do > >windowing instead of the Windows.Forms, but I have played with the GkSharp > >a bit and it would require some work to integrate. > > Yes. But if it is a hard work, it is the job of the Gtk#-Team. > But why does CsGL not running _without_ any special GUI on Mono/Linux? > > > >Since GtkSharp requires the use of making everything static, it is really > >annoying to work with. > > Hmmm... and do you know _why_ Gtk# makes everything static? > And there was a time (older Gtk#-Version), where it was not so? > Thats something, what someone can ask in the Gtk#-list. > > > >Maybe, Lloyd can shead some light on the issue. > > I hope so. > > > Greatings > BL-Freddy > > > _________________________________________________________________ > MSN - More useful every day http://www.msn.de > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Csgl-users mailing list > Csg...@li... > https://lists.sourceforge.net/lists/listinfo/csgl-users |