GLEW, GLUT, or GLEE? (Linux OGL)

This isn't the Bin, don't treat it like one.
Randoms and Funnies are permitted, but no flaming.
Post Reply
mudlord
Senior Member
Posts: 306
Joined: Sun Feb 08, 2009 7:16 am

GLEW, GLUT, or GLEE? (Linux OGL)

Post by mudlord »

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:

Hard Core Rikki
Member
Posts: 78
Joined: Tue Apr 08, 2008 12:26 pm

GLEW, GLUT, or GLEE? (Linux OGL)

Post by Hard Core Rikki »

SDL and QT, I suppose. Personally, I have a design preference for QT, but...

bgK
Member
Posts: 88
Joined: Thu Apr 17, 2008 3:58 pm

GLEW, GLUT, or GLEE? (Linux OGL)

Post by bgK »

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 [img]<fileStore.core_Emoticons>/emoticons/smile.png[/img]/emoticons/smile@2x.png 2x" width="20" height="20" />

deniseweird
Junior Member
Posts: 28
Joined: Thu Mar 20, 2008 7:53 am

GLEW, GLUT, or GLEE? (Linux OGL)

Post by deniseweird »

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.

mudlord
Senior Member
Posts: 306
Joined: Sun Feb 08, 2009 7:16 am

GLEW, GLUT, or GLEE? (Linux OGL)

Post by mudlord »

..Which then forces me to use the GPL.

 

I rather use the BSD or public domain.

spacy51
Senior Member
Posts: 371
Joined: Tue Mar 18, 2008 4:59 pm

GLEW, GLUT, or GLEE? (Linux OGL)

Post by spacy51 »

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

mudlord
Senior Member
Posts: 306
Joined: Sun Feb 08, 2009 7:16 am

GLEW, GLUT, or GLEE? (Linux OGL)

Post by mudlord »

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. [img]<fileStore.core_Emoticons>/emoticons/tongue.png[/img]/emoticons/tongue@2x.png 2x" width="20" height="20" />

 

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 [img]<fileStore.core_Emoticons>/emoticons/tongue.png[/img]/emoticons/tongue@2x.png 2x" width="20" height="20" />). 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.

Last edited by mudlord on Thu Apr 24, 2008 4:40 am, edited 1 time in total.
Post Reply