Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

idinkin

Classical Question

This topic is 5578 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What''s the actual difference between DirectX and OpenGL? Do they have the same abilities? Thanx in advance..

Share this post


Link to post
Share on other sites
Advertisement
I''ll say right off the top that I have never used OpenGL, but this is what I gather...

DirectX seems better at keeping current. New versions of DX come out fairly often to coincide with new hardware features.

In DirectX, you can tell what features are available with a capabilities check. After that, coding for each card is identical.

OpenGL usually ends up with several vender specific extensions to support the new features. After some time, these may become ARB extensions which are a vender-neutral way of exposing the same functionality.

Since the OGL extensions are specific for a card (or series of cards), they tend to do whatever they do quickly and efficiently. However, since it''s a vender extension you have to ensure you support all the extensions from all the card manufacturers that your target market might have.

Despite the fact that is sounds like more work, I know a few people who like simplicity and swear by OpenGL.

Also, OpenGL is cross platform, while DirectX is Windows and XBox only.

So, decide who your target is (Linux people? Mac people? PC people only?). If you''ve chosen PC only, you''ve got a choice of DirectX or OpenGL. Both can do the same thing, but OpenGL might be more work because of extensions, though apparently gets faster results (in terms of FPS, not necessarily dev. time).

Share this post


Link to post
Share on other sites
So the only difference is that OpenGL may be faster if you use the extensions. And the that OpenGL is cross platform API?

Share this post


Link to post
Share on other sites
This may be a sweeping generalisation but I find that people who started programming in C are often more comfortable with OpenGL, while those who started with C++ favour DirectX.

I would recommend trying both and deciding which you feel is suited to your coding style.

Share this post


Link to post
Share on other sites
quote:
Original post by MrP
This may be a sweeping generalisation but I find that people who started programming in C are often more comfortable with OpenGL, while those who started with C++ favour DirectX.

I would recommend trying both and deciding which you feel is suited to your coding style.


I have noticed this too.
DirectX is, after all, class-based, while OGL is procedural, as is c.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!