the guy that asks weird things, here, again
I see that they use different executables, for a game that was created for both directx 9 and 10. It is possible to include "d3d9.h" and "d3d10.h" in a code file, then select direct3d 9 functions or direct3d 10 functions, depending on, for example, an argument that acts like a flag? I am not talking about drawing something using a direct3d 10 function using a direct3d 9 context and object.
What I want to do is create a function called init3D(UINT version);
Depending on version
, it will create a directx 9 or directx 10 object and device. I don't know if that is possible or I must create two different executables (or 3 if I decide to use d3d8, too)
Thanks for your help and forgive my lack of understanding with some of the C++ techniques.