3rd party libraries instead of OGL & DX

This is a discussion on 3rd party libraries instead of OGL & DX within the Game Programming forums, part of the General Programming Boards category; To me it seems like people have more trouble trying to get SDL to work than they would just using ...

  1. #1
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590

    3rd party libraries instead of OGL & DX

    To me it seems like people have more trouble trying to get SDL to work than they would just using plain old DirectX and/or Direct3D.

    Same with other 3rd party libraries that attempt to simplify OGL and/or DX.

    So my question to everyone is why waste your time? Just learn the real deal and forget those libs.

  2. #2
    glo
    glo is offline
    Registered User
    Join Date
    May 2006
    Posts
    169
    I guess one barrier is windowing. OGL per se doesnt offer windowing (and glut isnt good enough), that kinda ticked me off when I wanted to start learning it.

  3. #3
    Registered User
    Join Date
    Sep 2005
    Posts
    196
    wait? doesnt sdl offer features not available in opengl?

    the only thing ive actually wanted to do for a while is create a 2d game.how good is plain ol gl at this?

    i mean all tutorials deal with 3d where is the 2d stuff.if i can make a game in just opengl(c++) as easily and as good as in sdl(c++) id easily switch...

    especially since the 5 hours it took to figure out how to blit the dang picture to the screen in sdl.

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    From http://www.spacejack.org/games/mingw/mingw-dx.html:
    I should first point out to beginner game developers that it is entirely possible to avoid using DirectX at all by using SDL (Simple DirectMedia Layer) for all your graphics, sound, input, timing, etc., and it integrates well with OpenGL for 3D graphics (it actually uses DirectX for 2D graphics, sounds, and so on) -- with the added benefit of being cross-platform. So unless you need or want to work with the DirectX API directly for some specific reason, this is a good solution that offers portability to a number of other platforms and a rabid following of both pro and amateur game developers. If you're just starting out and not sure, I would recommend looking into it before getting into DirectX.
    That was the kind of material I read that made me use the SDL. The SDL was recommended by Salem, in fact. What do you have against it?
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  5. #5
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    I never had a problem in learning to use and setting up SDL. Perhaps it is the fact that many people who don't know the language/IDE/compilers very well hear SDL is easier to learn than OpenGL or DirectX so they go for it first.

    I learned SDL because people said it was a good starting point if I wanted to get into graphics of any sort. I played with it and found my creativity lacking for video game development.


    I veer OT here: Though I do have a scripting engine in the works. But that is part of me wanting to be a game programmer and not being cut out for it. It will be FOSS as soon as I A. Make it work better and B. Give it a name.

  6. #6
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    I've never had any problems settings up 3rd part libraries.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  7. #7
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    Do a search on our board here and see what the results are.

  8. #8
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    I've had problems using them, but setting them up? A cripple "my little pony" doll could install SDL.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  9. #9
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    Most people actually have some trouble setting up the SDL; or at least a lot of threads are on that subject.

    But if you have the SDL already installed, what's wrong with it?
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  10. #10
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070
    Quote Originally Posted by lilhawk2892
    i mean all tutorials deal with 3d where is the 2d stuff.if i can make a game in just opengl(c++) as easily and as good as in sdl(c++) id easily switch...
    2D in OpenGL is as simple as using orthographic projection, and using 2D funcions instead of 3D functions. glVertex2f() instead of glVertex3f(), for example.
    Memorial University of Newfoundland
    Computer Science

    Mac and OpenGL evangelist.

  11. #11
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    If you are using SDL because you are afraid of the underlying API you are using it for the wrong reason and will still end up coding yourself into a corner. If you are using it as a tool to speed development, then that is a whole nother ball game.

  12. #12
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    Afraid is the wrong word. It is a layer of abstraction so I do not have to understand all of the underlying concepts at once. Now that I have played with SDL... I have done (very) basic things in OpenGL without too much trouble, since it taught me some of the concepts so I did not have to dive in all at once.

  13. #13
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    It's possible to abstract into nothing.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. problems addign 3rd party source to VS
    By m37h0d in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 07:03 AM
  2. Patching an exe to block 3rd party extractors
    By jmprox in forum Windows Programming
    Replies: 9
    Last Post: 09-24-2008, 11:54 AM
  3. 3rd party De-fragger
    By WDT in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 11-02-2005, 09:58 PM
  4. xp/2k 3rd party dos emulation...
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 12-28-2001, 06:37 PM
  5. My graphics library
    By stupid_mutt in forum C Programming
    Replies: 3
    Last Post: 11-26-2001, 05:05 PM

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