Jump to content
Visual Boy Advance-M
Sign in to follow this  
mudlord

GLEW, GLUT, or GLEE? (Linux OGL)

Recommended Posts

Hi,

 

I'm starting to think of making my OpenGL template code cross platform.

 

Part of the issue is, I dunno any decent OGL toolkits under Linux. With Windows, everything is dead easy, but for Linux, its a nightmare.

 

I am tossing up between several things:

 

* GLUT

* GLEE

* GLEW

* SDL

* Qt

 

Which would you guys prefer I use if I start writing OGL tutorials. Personally, GLUT sucks major ass, plus its dead. So I'm really up in arms what to do with OpenGL in Linux. :question:

Share this post


Link to post
Share on other sites

Good idea ! That would allow the Win32, Qt and SDL (and soon GTK) ports to benefit from the same features and enhancements.

I'm no OpenGL specialist, but I think there are 2 different things :

- The OpenGL context creation, that's what's done by SDL, Qt, or GtkGlExt

- The OpenGL rendering code which may use extensions loaded by GLUT, GLEE or GLEW

 

The context creation code should no be abstracted. Each port should use it's own Gl library to initialize OpenGL. The rendering code is then just plain OpenGL and is not platform specific anymore. If you want to use OpenGL extensions in the code, pick whichever library you like the most, but I can't see why extensions are needed.

 

To add OpenGL support to the GTK port, I was going to use GtkGlExtmm to create an OpenGL context in the rendering area (about 10 lines of code), and then copy and paste the SDL port OpenGL rendering code which doesn't use any extension. But if you write an OpenGL framework, it'll be even easier :)

Share this post


Link to post
Share on other sites

I do not know too much about OpenGL, but I like Qt for GUIs. And you are working on a Qt GUI already, so afaik it seems like the best solution.

Share this post


Link to post
Share on other sites

VBA is GPL'ed anyway, I don't think there's anything we can do about it. And anyway, who cares?

Share this post


Link to post
Share on other sites
VBA is GPL'ed anyway, I don't think there's anything we can do about it. And anyway, who cares?

 

Well, of course the OGL code for VBA will be GPL, since it was previously. :P

 

However, what I was referring to is that I might be making the code I use for building OpenGL applications cross platform. Thus, the code could be used for educational purposes (so even you could learn OGL :P). Think of it as a very minor side project. Plus, I dislike the GPL for several reasons, namely the ideologies of the FSF. I have nothing against Open Source in general, I just hate how the FSF and Richard Stallman are going about things.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×