feat(gx): add initial d3d backend

This commit is contained in:
fallenoak authored and GitHub committed 2023-03-05 11:55:12 -06:00
1 parent 1ab29701af
commit 2010aa8e4e
6 files changed
+226 -3

No files matched your search

+9 -1
View File
@@ -185,7 +185,15 @@ void ConsoleDeviceInitialize(const char* title) {
CGxFormat format;
memcpy(&format, &s_requestedFormat, sizeof(s_requestedFormat));
CGxDevice* device = GxDevCreate(GxApi_GLL, nullptr, format);
// TODO proper api selection
EGxApi api = GxApi_OpenGl;
#if defined(WHOA_SYSTEM_WIN)
api = GxApi_D3d9;
#elif defined(WHOA_SYSTEM_MAC)
api = GxApi_GLL;
#endif
CGxDevice* device = GxDevCreate(api, nullptr, format);
// TODO
}