mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
feat(console): add ConsoleDeviceExists
This commit is contained in:
parent
300d6b2f29
commit
a64ab82e41
@ -6,6 +6,7 @@
|
|||||||
#include "gx/Device.hpp"
|
#include "gx/Device.hpp"
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
|
static CGxDevice* s_device;
|
||||||
CVar* s_cvGxMaximize;
|
CVar* s_cvGxMaximize;
|
||||||
CVar* s_cvGxResolution;
|
CVar* s_cvGxResolution;
|
||||||
CVar* s_cvGxWidescreen;
|
CVar* s_cvGxWidescreen;
|
||||||
@ -198,7 +199,7 @@ void ConsoleDeviceInitialize(const char* title) {
|
|||||||
api = GxApi_GLL;
|
api = GxApi_GLL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
CGxDevice* device = GxDevCreate(api, OsWindowProc, format);
|
s_device = GxDevCreate(api, OsWindowProc, format);
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
@ -207,3 +208,7 @@ void ConsoleDeviceInitialize(const char* title) {
|
|||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int32_t ConsoleDeviceExists() {
|
||||||
|
return s_device != nullptr;
|
||||||
|
}
|
||||||
|
|||||||
@ -9,4 +9,6 @@ struct DefaultSettings {
|
|||||||
|
|
||||||
void ConsoleDeviceInitialize(const char* title);
|
void ConsoleDeviceInitialize(const char* title);
|
||||||
|
|
||||||
|
int32_t ConsoleDeviceExists();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user