Jump to content
  • Advertisement
Sign in to follow this  
BradDaBug

Gtk#, OpenGL, and Windows

This topic is 4454 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to use Gtk# to develop a GUI application on Windows. Not that hard, right? But I also want to use OpenGL within that application. Now it gets tricky. There is stuff like Tao and CsGL that provide controls for WinForms for OpenGL drawing, and there's controls for Gtk# on Linux, but none of these seem completely portable. What to do?

Share this post


Link to post
Share on other sites
Advertisement
You can develop OpenGL applications for Linux using .NET/Mono's System.Windows.Forms . If you have a look at Tao.Platforms.Windows, you'll find an OpenGL control to render the OpenGL context. DaWanderer has also made a few changes to it: OpenGLWinFormsControl.cs. The control more or less acts as an example of how to render OpenGL for the System.Windows.Forms platform.

Another thing you could do is take a look at the SimpleOpenGlControl and then create your own Gtk# control from it. If you do put one together, be sure to post it on the Tao Forum.

CsGL is just a much older version of Tao.OpenGL.

Share this post


Link to post
Share on other sites
Does the "windows" part of Tao.Platform.Windows mean the Windows.Forms platform, or the actual Windows OS?

I was trying to stay away from WinForms since Mono support for WinForms just seems too buggy and incomplete right now. Writing my own Gtk# control that will work on both Windows and Linux sounds interesting.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!