Download

DirectX or OpenGL?

Hi,
When running EU4 on the PC (Windows 7), does it use OpenGL or DirectX to drive the graphics card?
I ask this because I may have to do some low level programming to add sequential 3D support if possible.
I have experience with OpenGL on how to do this. But I have no experience with DirectX.

Hello,

It uses DirectX, but you can force it to use OpenGL, AFAIK.
Anyway, you don’t have to deal with low-level API dependent stuff, UE4 has powerful interface to graphics APIs - RHI(Render Hardware Interface), writing the code using RHI will result in working code on all the platforms(if the code is compatible with the underlying API level)

That sounds great. Where can I find the documentation of this RHI API? I searched for it, but could not find it.
Do you think I can implement sequential 3D using this API?

I believe there is no such documentation available, though you still might find something useful here - Graphics Programming | Unreal Engine Documentation
I think you’ll have to dig deep in the engine to implement this :slight_smile:

Good luck!

Threre is documentation:
https://docs.unrealengine.com/latest/INT/API/Runtime/RHI/index.html

Chilitomatonoodle is a great YouTube channel for learning DirectX API and C++.