Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
which better directx or opengl ?and when and where we use which ?
Posted

DirectX is not for graphics. Direct3D is the DirectX component for graphics. You can use DirectX and OpenGL together by using DirectX for everything non-graphical and OpenGL for the graphics.

People are often curious about whether Direct3D or OpenGL is better. They're both similarly functional and similarly fast, similarly easy, so really there's no great difference between them.

However,Direct3D will only be available on Windows platforms (Win2K, WinXP, XBox, etc.). And, OpenGL is avaliable EVERYWHERE (all Windows platforms, Mac, Linux, Playstation, Wii, etc.).

So if you're only writing for Windows platforms, doesn't really matter which. Otherwise, go OpenGL. Moreover, OpenGL is easier for beginners and more portable.

For more information,visit Comparison of OpenGL and Direct3D[^]
 
Share this answer
 
Read this

directx-or-opengl[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900