Thread: Direct X Vs. Open GL?

  1. #1
    Master n00b Matty_Alan's Avatar
    Join Date
    Jun 2007
    Bloody Australia Mate!

    Direct X Vs. Open GL?

    Hi all;
    I want to start learning a grapihcs API, I pretty much only program on windows so portability dosn't bother me and my programming skills are to basic to worry about all the little things that differ the two.
    iv'e had a bit of experiance with allegro and found it rather easy, but i want to learn something i can expand into 3d later on at the moment im mainly just focused on bitmaps and 2d stuff, but the main question here is...
    As far as coding goes is it easier to learn\code Open GL or Direct X?

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    segmentation fault
    There is the story about how John Carmack re-wrote Quake using openGL instead of DX and supposedly reduced parts of the codebase by 80-90%, implying somethings are easier in GL.

    However, that was more than 10 years ago and presumably DX has improved in this sense. I only know GL so I can't make a personal comparison.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  3. #3
    Not stupid, just stupider yaya's Avatar
    Join Date
    May 2007
    From personal experience (for what it's worth), I found OpenGL to be a bit easier to kick start off with. But they eventually get just as hard as each other.

  4. #4
    Registered User
    Join Date
    Aug 2003
    None is easier or faster than the other IMO. OpenGL has more free resources on the web, but the msdn and the directx sdk has very good documentation. Although if you are serious about learning you will need books, and there are books out there for both opengl and directx.

    Its all a matter of taste and what youre goal is, if you want to write portable code opengl is the way to go. DirectX has better native support for loading things like textures, models aswell as capturing input among others.

    Start with one, go with it for a while, see if you like it, if you dont try the other one and see if you like that better. This may seem like a waste but trust me, the concepts behind rendering 3D models in directx are the same in opengl, even if the function-calls are different, so you will still have learned stuff even if you dont like the library you learn with.

  5. #5
    Registered User
    Join Date
    Apr 2008
    Why don't you care about portability? You see no advantage in exploiting the iPod Touch/iPhone/iPad market?

  6. #6
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Closed. Please don't bump old threads.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Open GL
    By alexnb185 in forum Game Programming
    Replies: 4
    Last Post: 08-18-2007, 11:52 AM
  2. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  3. Problems with open and save boxes
    By pinkcheese in forum Windows Programming
    Replies: 3
    Last Post: 05-21-2002, 06:03 PM
  4. Ghost in the CD Drive
    By Natase in forum A Brief History of
    Replies: 17
    Last Post: 10-12-2001, 05:38 PM
  5. Direct x, open gl, but wait....what if...whoa, read this!
    By Leeman_s in forum Game Programming
    Replies: 2
    Last Post: 10-08-2001, 03:37 PM