GUI dev language: GTK+ || SDL?

This is a discussion on GUI dev language: GTK+ || SDL? within the Linux Programming forums, part of the Platform Specific Boards category; I am looking to expand from console to graphical applications programming on Linux. I understand that SDL is commonly used ...

  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    31

    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
    Location
    Liverpool UK
    Posts
    1,438
    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."

    Stroustrup:
    "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, 03:25 AM
  3. Why C Matters
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 136
    Last Post: 01-16-2008, 08:09 AM
  4. Language of choice after C++
    By gandalf_bar in forum A Brief History of Cprogramming.com
    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, 02:22 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21