Page 1 of 1

GLEW, GLUT, or GLEE? (Linux OGL)

Posted: Tue Apr 22, 2008 10:02 pm
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:


GLEW, GLUT, or GLEE? (Linux OGL)

Posted: Tue Apr 22, 2008 11:12 pm
by Hard Core Rikki

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


GLEW, GLUT, or GLEE? (Linux OGL)

Posted: Wed Apr 23, 2008 2:54 am
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" />


GLEW, GLUT, or GLEE? (Linux OGL)

Posted: Wed Apr 23, 2008 4:39 pm
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.


GLEW, GLUT, or GLEE? (Linux OGL)

Posted: Wed Apr 23, 2008 7:23 pm
by mudlord

..Which then forces me to use the GPL.

 

I rather use the BSD or public domain.


GLEW, GLUT, or GLEE? (Linux OGL)

Posted: Thu Apr 24, 2008 3:44 am
by spacy51

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


GLEW, GLUT, or GLEE? (Linux OGL)

Posted: Thu Apr 24, 2008 4:39 am
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.