Does UE4 use directx or opengl?

How do you override it to use OpenGL? I’ve tried but have not figured out how to do it