feat(gx): add initial d3d backend

This commit is contained in:
fallenoak 2023-03-05 11:55:12 -06:00 committed by GitHub
parent 1ab29701af
commit 2010aa8e4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 226 additions and 3 deletions

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
}