mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(gx): add GxDevExists
This commit is contained in:
parent
137045e947
commit
300d6b2f29
@ -42,6 +42,10 @@ CGxDevice* GxDevCreate(EGxApi api, int32_t (*windowProc)(void* window, uint32_t
|
||||
}
|
||||
}
|
||||
|
||||
int32_t GxDevExists() {
|
||||
return g_theGxDevicePtr != nullptr;
|
||||
}
|
||||
|
||||
EGxApi GxDevApi() {
|
||||
return g_theGxDevicePtr->m_api;
|
||||
}
|
||||
|
||||
@ -11,6 +11,8 @@ extern CGxDevice* g_theGxDevicePtr;
|
||||
|
||||
CGxDevice* GxDevCreate(EGxApi api, int32_t (*windowProc)(void* window, uint32_t message, uintptr_t wparam, intptr_t lparam), const CGxFormat& format);
|
||||
|
||||
int32_t GxDevExists();
|
||||
|
||||
EGxApi GxDevApi(void);
|
||||
|
||||
void* GxDevWindow();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user