First of all, DirectX is an API- a set of instructions that enables the GPU to render 3D(as well as 2D for DX10 or later)content.OpenGL does the same thing, however since its development has been slow, there are not many games that use it.Some older games like Doom 3 can use it.