Thread: GUI dev language: GTK+ || SDL?

  1. #1
    Registered User
    Join Date
    Sep 2010

    GUI dev language: GTK+ || SDL?

    I am looking to expand from console to graphical applications programming on Linux. I understand that SDL is commonly used for games, and GTK+ is commonly used for desktop apps, but it seems SDL can do most of (if not all) the same stuff as GTK+.

    Would it be worthwhile to learn both? I would like to eventually get into games programming (still on Linux), so I figure I will have to learn SDL anyways. Should I just skip the GTK+?

  2. #2
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Liverpool UK
    You can do it all in SDL yes, problem is you have to write everything from scratch, including managing/sourcing/drawing yourself, all the GUI elements like button images and everything else, also fonts are not natively supported though there are libraries available, the best available being SDL ttf_font but it still does not provide the same text features as GTK will 'out of the box', you will have to create all that yourself. Which is not as hard as it may sound, its just work,
    second difference with GTK is that you will probably have murder getting up to speed as it is a different way of programming than you will be familiar with
    Last edited by rogster001; 10-06-2010 at 03:33 AM.
    Thought for the day:
    "Are you sure your sanity chip is fully screwed in sir?" (Kryten)
    FLTK: "The most fun you can have with your clothes on."

    "If I had thought of it and had some marketing sense every computer and just about any gadget would have had a little 'C++ Inside' sticker on it'"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Language matching algorithms
    By EVOEx in forum Tech Board
    Replies: 10
    Last Post: 07-22-2010, 10:42 PM
  2. Compiling C in Visual Studio 2005
    By emanresu in forum C Programming
    Replies: 3
    Last Post: 11-16-2009, 04:25 AM
  3. Why C Matters
    By DavidP in forum A Brief History of
    Replies: 136
    Last Post: 01-16-2008, 09:09 AM
  4. Language of choice after C++
    By gandalf_bar in forum A Brief History of
    Replies: 47
    Last Post: 06-15-2004, 01:20 AM
  5. GUI Programming :: C++ Exclusive
    By kuphryn in forum C++ Programming
    Replies: 5
    Last Post: 01-25-2002, 03:22 PM