Thread: OpenGL or DirectX?

  1. #1
    Registered User
    Join Date
    Apr 2007

    OpenGL or DirectX?

    Hey all, I have dabbled in both OpenGl and DirectX libraries of C++. However I can't decide which to use for my games/renderings. If you would please give input on which you prefer I would greatly appreciate it.

  2. #2
    Ethernal Noob
    Join Date
    Nov 2001
    I'm learning OpenGL, I know nothing about the differences between either, but OpenGL has a nice learning curve if you start from the beginning. I do have to say OpenGL is state based, so there's little abstraction by way of objects and the like when it comes to the code, you have to do that yourself, but once you find a strategy you'll find it quite nice to work with. Bubbah does a lot of Directx and knows quite a bit about 3d.

    Plus this should be on the Game programming forum.

  3. #3
    Registered User
    Join Date
    Apr 2007
    Ahh lol, good point.

    Please move this to game programming forum.

  4. #4
    In the Land of Diddly-Doo g4j31a5's Avatar
    Join Date
    Jul 2006
    I think it all comes down to what platform you want to use. Obviously you can't make DirectX run on Linux. And in Windows, it's preferred to make it with DirectX over OpenGL because it's more optimized for use in Windows.
    ERROR: Brain not found. Please insert a new brain!

    “Do nothing which is of no use.” - Miyamoto Musashi.

  5. #5
    Massively Single Player AverageSoftware's Avatar
    Join Date
    May 2007
    Buffalo, NY
    The two aren't mutually exclusive. OpenGL is a graphics API while DirectX is an entire API suite. It's entirely possible to use OpenGL for your graphics, while using DirectSound, DirectInput, etc... for the other stuff.

    It all depends on your priorities. For example, portability is extremely important to me, as I'm primarily a Mac developer who ports to Linux/Windows, so I use OpenGL and OpenAL for everything. If you don't care about non-Windows platforms, your reasoning will be different.

    However, should you ever decide to abandon Windows, a pure DirectX project will bite you in the rear. Some people abstract the graphics rendering and have both Direct3D and OpenGL modes in the same program, which can alleviate the problem somewhat.

    Either way, it's a question of priorities and future plans.
    There is no greater sign that a computing technology is worthless than the association of the word "solution" with it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Going from DirectX to OpenGL
    By Wraithan in forum Game Programming
    Replies: 19
    Last Post: 02-24-2006, 11:07 AM
  2. Allegro, OpenGL.. or even DirectX?
    By Zeusbwr in forum C++ Programming
    Replies: 1
    Last Post: 11-14-2004, 08:16 AM
  3. Which is better: OpenGL or DirectX
    By Stan100 in forum Game Programming
    Replies: 2
    Last Post: 05-09-2003, 04:43 PM
  4. OpenGL 2 or DirectX ?
    By alex6852 in forum A Brief History of
    Replies: 9
    Last Post: 01-02-2003, 02:31 PM
  5. So.. what's the difference between DirectX and OpenGL?
    By QuestionC in forum Game Programming
    Replies: 6
    Last Post: 01-19-2002, 06:18 PM