Which graphics API?

This is a discussion on Which graphics API? within the Game Programming forums, part of the General Programming Boards category; Once I get down non-API C++, I want to get into game programming, but I don't know which graphics API ...

  1. #1
    C/C++ homeyg's Avatar
    Join Date
    Nov 2004
    Location
    Louisiana, USA
    Posts
    209

    Which graphics API?

    Once I get down non-API C++, I want to get into game programming, but I don't know which graphics API I should learn. I heard DirectX is too hard, and haven't heard much at all about OpenGL. Which would you recommend (or a different one)?

    And also, are there any good books on the one you recommend?

  2. #2
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    I heard DirectX is too hard
    It's not that hard if you have a good knowledge of c++, I think.

    If you don't mind portability to non-windows OS's then I would recommend DirectX.

  3. #3
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    970
    Having played with several, I can say that all of them have their own advantages and disadvantages that balance them out. In the end, I don't think any of them is significantly better than the rest.

    However if I were to rate them in order of increasing difficulty to learn...I would say SDL is the easiest, followed by OpenGL and DirectX is the most complicated to get started with. The nice thing about SDL is that it wraps DirectDraw AND you can use OpenGL with it. Plus it's cross-platform and comes with an easy C-based API. Click here to see how to set up your SDL build environment.

  4. #4
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    None of them are too hard. Most of the problems you will encounter in graphics programming has next to nothing to do with your knowledge of C++. Much of it is just pure math.

  5. #5
    BMJ
    BMJ is offline
    Banal internet user BMJ's Avatar
    Join Date
    Aug 2002
    Location
    Chicagoland
    Posts
    1,380
    Quote Originally Posted by homeyg
    I heard DirectX is too hard, and haven't heard much at all about OpenGL.
    You heard that huh? This was more true for older versions of DirectX. Version 9, for example, is very streamlined.

    Use whichever API you prefer, unless you plan to port to OSes other than Windows. OGL and DX9 are pretty evenly matched as far as "ease of use" goes.

  6. #6
    C/C++ homeyg's Avatar
    Join Date
    Nov 2004
    Location
    Louisiana, USA
    Posts
    209
    Quote Originally Posted by BMJ
    You heard that huh? This was more true for older versions of DirectX. Version 9, for example, is very streamlined.

    Use whichever API you prefer, unless you plan to port to OSes other than Windows. OGL and DX9 are pretty evenly matched as far as "ease of use" goes.
    I definately want to stick to writing games/programs for Windows because I despise other game systems. I think more can be done with a computer.

    EDIT: Post number 123, lol.

    EDIT2: Another question. Is it also nessecary to learn the Windows API if I decide to go into DirectX? Like, what exactly would the difference be between programming games with the Windows API and DirectX or some other graphics API?
    Last edited by homeyg; 03-27-2005 at 03:53 PM.

  7. #7
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    >>I definately want to stick to writing games/programs for Windows because I despise other game systems. I think more can be done with a computer.


    You do realize that not every computer runs windows right? OK, so lets look at the issue again. If you only want to target windows then DX will do just fine. If you want to target other platforms (including other PC's running different OSs like linux, max, etc..) then you might want to choose a more portable API like SDL, Allegro, or OpenGL.

    Both OpenGL and DirectX can be used for professional quality graphics in games. SDL and Allegro are great for small projects but won't scale to industry standards for real-time graphics.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 3d graphics without API
    By h3ro in forum Game Programming
    Replies: 6
    Last Post: 05-31-2008, 11:51 AM
  2. Beginning Game Programming Type Books
    By bumfluff in forum Game Programming
    Replies: 36
    Last Post: 09-13-2006, 04:15 PM
  3. BGI Graphics in Windows API
    By AtomRiot in forum Windows Programming
    Replies: 1
    Last Post: 07-29-2003, 05:32 PM
  4. n00b needs help with api graphics acting very weird
    By CheeseWeaver in forum Windows Programming
    Replies: 2
    Last Post: 03-18-2003, 02:15 PM
  5. Flickery API graphics
    By Magos in forum Windows Programming
    Replies: 7
    Last Post: 10-23-2002, 06:49 AM

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