Thread: Which toolkit should I use: gtk2+ or gtk3+?

  1. #1
    Registered User
    Join Date
    Dec 2016
    Posts
    30

    Which toolkit should I use: gtk2+ or gtk3+?

    Hi,

    I was writing a program (about 500 lines) that makes use of some old openGL 2.1 graphics using C and freeGlut. The reason I used openGL 2.1 is simple: most tutorials on the net refer to it. Then I realized it would be better to include a GUI, so having the code written in C, I can only go for GTK. But then there is the problem: GTK3+ does is incompatible with openGL2.1 code (halting problem : Using OpenGL with GTK+ ). So I would need to go to GTK2+. But going to GTK2+ is going backwards is it not?

    What do you guys recommend? Here are a few options:

    1) Should I learn new openGL and use state-of-the-art GTK3+

    2) Just learn GTK2+

    3) Well, just convert/rewrite your C code into C++ and use Qt as it is cross-platform (GTK3+ is not so great in that aspect) and can achieve some wonderful results.

  2. #2
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    OpenGL 2.1 is old, if you're okay with using it still, why wouldn't be okay with using the old GTK as well?
    Last edited by Yarin; 12-09-2016 at 07:32 PM.

  3. #3
    Informer -Adrian's Avatar
    Join Date
    Jan 2013
    Posts
    817
    Agreed with Yarin, if you want to stick to C and an old OpenGL version, then just go with GTK2+, it's perfectly fine and not "old" in any sense of being bad / redundant.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I need help with GTK3 treeviews, and paneviews
    By KoRn KloWn in forum C Programming
    Replies: 6
    Last Post: 01-18-2013, 01:31 PM
  2. Which Gui toolkit should I use.
    By freiza in forum Windows Programming
    Replies: 0
    Last Post: 05-16-2012, 01:29 PM
  3. GUI toolkit for C... which one?
    By JBull in forum C Programming
    Replies: 8
    Last Post: 12-04-2007, 12:44 PM
  4. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 07:33 AM
  5. linux/gcc/gtk2 programming help
    By solarwind in forum C Programming
    Replies: 0
    Last Post: 02-05-2006, 08:58 PM

Tags for this Thread