Advertisement Jump to content
Sign in to follow this  

OpenGL is directx better than OPENGL

This topic is 4826 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

From a delightful repository of information you were apparently disinclined to read, known as the Forum FAQ:

I've heard about this thing called OpenGL. What does it have to do with DirectX?

OpenGL is another technology that can be used for graphics. It is not part of DirectX; it does the same stuff as Direct3D, but in different ways. Which one should you use, you ask? Well, neither OpenGL nor Direct3D is inherently faster or better; you're calling the same number of functions and stuff with each one, but the important thing is your graphics card. Some have better support for Direct3D than for OpenGL; while for others, it's the other way around. If you don't have a graphics card with3 D acceleration features, then it depends on the software rendering support of the latest drivers for each. There are some other things to consider when picking which one to use:

- Direct3D can only be used on Windows platforms, while OpenGL is supported on Windows, Mac, and a large number of Unix derivants (including Linux). There's also a special form of OpenGL being made for mobile phones, called OpenGL ES (Embedded Systems).

- Direct3D is updated about every year (along with the rest of DirectX), sometimes with major changes. But it is always backwards compatible, meaning that if you're using version 8 when version 9comes out, you can carry on using version 8without any problems. (Of course, you might not be able to do some of the things that version 9gives you). Because of the frequent updates, Direct3D always supports the newest features of the hardware accelerators, and provides software emulation for a lot of them; features are quicker to be standardised than OpenGL, because OpenGL standards have to be agreed by a comittee of representatives from a number of companies, and that usually takes longer to do. However, DirectX doesn't have any support for features that aren't 'official,' while OpenGL has an 'extensions' mechanism that allows you to play with certain features on certain graphics cards before it's been agreed how they'll officially work.

- Windows officially only supports OpenGL version1 .1, while Windows 98and later will all support DirectX9 .0b.

- Using OpenGL means using a function-oriented interface, while using Direct3D means using an object-oriented interface.

A more complete comparison can be found here and here.

If you're worried about which one to learn, and which one the pros use, the answer is that more often than not they'll use both. The underlying math and3 D programming theory is the same for each of them, so if you learn that, you should do fine with both of them. Oh, and apart from Direct3D, all the DirectX components can be used alongside OpenGL. If you want to use DirectInput for joystick input and OpenGL for your
graphics, that's fine.

If you want more information about OpenGL, the OpenGL Forum FAQ might be a good place to start.

Share this post

Link to post
Share on other sites

This topic is 4826 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.

This topic is now closed to further replies.
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!