feat(event): pass custom window proc in gx device creation

This commit is contained in:
fallenoak 2023-03-14 17:15:54 -05:00 committed by GitHub
parent 9ccd1884f3
commit 32f9c81abf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 41 additions and 1 deletions

View file

@ -1,4 +1,5 @@
#include "client/Console.hpp"
#include "event/Window.hpp"
#include "gx/Device.hpp"
#include "util/CVar.hpp"
#include <cstring>
@ -200,7 +201,7 @@ void ConsoleDeviceInitialize(const char* title) {
api = GxApi_GLL;
#endif
CGxDevice* device = GxDevCreate(api, nullptr, format);
CGxDevice* device = GxDevCreate(api, OsWindowProc, format);
// TODO
}