is API better then SDL?

This is a discussion on is API better then SDL? within the C++ Programming forums, part of the General Programming Boards category; I was just wondering, but is API better then SDL, or not? Oh, and what is GUI? is it something ...

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    84

    is API better then SDL?

    I was just wondering, but is API better then SDL, or not?


    Oh, and what is GUI? is it something i should learn as well if im building a game?
    Last edited by ExDHaos; 05-19-2009 at 06:20 AM.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    SDL is an API, so I think you are confused about something.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    84
    Quote Originally Posted by matsp View Post
    SDL is an API, so I think you are confused about something.

    --
    Mats
    really? then why they use separate libraries?

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    What you are asking is something like "Which is better a BMW or a CAR?" - SDL is a library that provides an application programmer with a certain functionality, through an interface. Thus it is a Application Programming Interface - API.

    Presumably you would like to compare the SDL API with <some other> API.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #5
    Registered User
    Join Date
    May 2009
    Posts
    84
    Quote Originally Posted by matsp View Post
    What you are asking is something like "Which is better a BMW or a CAR?" - SDL is a library that provides an application programmer with a certain functionality, through an interface. Thus it is a Application Programming Interface - API.

    Presumably you would like to compare the SDL API with <some other> API.

    --
    Mats
    Thanks alot, now I understand it, anyways, what is the bestt interface programming should i learn before learning OpenGL or DirectX?

    And can u explain me what is GUI (I know it stands for -Graphical User Interface- or something like that) is it good?

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,734
    Quote Originally Posted by ExDHaos
    Thanks alot, now I understand it, anyways, what is the bestt interface programming should i learn before learning OpenGL or DirectX?
    The C++ Standard Library.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  7. #7
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    History of the graphical user interface - Wikipedia, the free encyclopedia

    As to what is "best to learn", if you define "best", I can POSSIBLY answer that...

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  8. #8
    Registered User
    Join Date
    May 2009
    Posts
    84
    Quote Originally Posted by laserlight View Post
    The C++ Standard Library.
    Is STL is interface programming? =/

  9. #9
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Given that you tend to throw out things that you don't quite know what you mean by, I'd say you need to define what you mean by "interface programming"...

    To be at least somewhat "complete" as a C++ programmer, you should know how to use STL, for sure. If you want to do Direct3D or OpenGL programming, then knowing how to use STL will help you achieve some of the things you may need to do - it won't solve all problems, but it will help.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  10. #10
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,734
    Quote Originally Posted by ExDHaos
    Is STL is interface programming? =/
    In some ways, yes, but frankly, I probably misinterpreted your question. Instead of "interface programming", talk about "user interface (programming) library" (or framework, or toolkit). If you want to be specific, mention "console" or "graphical" user interface.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  11. #11
    Registered User
    Join Date
    Aug 2003
    Posts
    1,205
    It sounds like you just need to get down and dirty with the very basics of programming before thinking about these things. Not to sound rude but it sounds like you just started programming and really have no idea what you are talking about Learn the basics, you know the walk before you run deal and all that.

  12. #12
    Registered User
    Join Date
    May 2009
    Posts
    84
    Quote Originally Posted by laserlight View Post
    In some ways, yes, but frankly, I probably misinterpreted your question. Instead of "interface programming", talk about "user interface (programming) library" (or framework, or toolkit). If you want to be specific, mention "console" or "graphical" user interface.
    To be honest I still don't have anything specific, I'm just wondering which one has the more freedom in graphics/interface matter, which one is the most flexible. but as to console, I use windows so its the best if it works good with windows.

  13. #13
    Registered User
    Join Date
    May 2009
    Posts
    84
    Quote Originally Posted by matsp View Post
    Given that you tend to throw out things that you don't quite know what you mean by, I'd say you need to define what you mean by "interface programming"...

    To be at least somewhat "complete" as a C++ programmer, you should know how to use STL, for sure. If you want to do Direct3D or OpenGL programming, then knowing how to use STL will help you achieve some of the things you may need to do - it won't solve all problems, but it will help.

    --
    Mats
    So you say its the best approach to DirectX and OpenGL?

  14. #14
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by ExDHaos View Post
    So you say its the best approach to DirectX and OpenGL?
    Huh? How did you manage to read that out of my message. I said I agree that learning STL is an important part of becoming a complete C++ programmer. And IF you wish to use either of those 3D graphics API's, you will need to understand the basics of C++ first.

    Are there other things you should also learn? Probably.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  15. #15
    Registered User
    Join Date
    May 2009
    Posts
    84
    Quote Originally Posted by matsp View Post
    Huh? How did you manage to read that out of my message. I said I agree that learning STL is an important part of becoming a complete C++ programmer. And IF you wish to use either of those 3D graphics API's, you will need to understand the basics of C++ first.

    Are there other things you should also learn? Probably.

    --
    Mats
    Oh sorry, I guess I misunderstood you.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problems compiling this SDL app
    By Rider in forum C++ Programming
    Replies: 3
    Last Post: 03-27-2007, 12:22 PM
  2. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM
  3. FILES in WinAPI
    By Garfield in forum Windows Programming
    Replies: 46
    Last Post: 10-02-2003, 06:51 PM
  4. OLE Clipboard :: Win32 API vs. MFC
    By kuphryn in forum Windows Programming
    Replies: 3
    Last Post: 08-11-2002, 05:57 PM
  5. sdl in c++
    By Klinerr1 in forum C++ Programming
    Replies: 8
    Last Post: 07-07-2002, 07:46 AM

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