summaryrefslogtreecommitdiffhomepage
path: root/InfoEx/src/directx_win32.cpp
blob: 4ade30b8e5a7097333345e1b297976df7080cf65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifdef _WIN32

#include <InfoEx.h>

#include <windows.h>

#include <Text.h>


namespace InfoEx
{


DXVersion
DirectX()
{
	auto lib = LoadLibrary("D3D9.DLL");
	if (lib == nullptr)
		return DXVersion::None;
	FreeLibrary(lib);
	return DXVersion::Dx9;
}


}  // namespace InfoEx


#endif  // _WIN32