mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 16:22:32 +03:00
feat(gx): add GxDevExists
This commit is contained in:
1 parent
137045e947
commit
300d6b2f29
2 files changed
+6
No files matched your search
@@ -42,6 +42,10 @@ CGxDevice* GxDevCreate(EGxApi api, int32_t (*windowProc)(void* window, uint32_t
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int32_t GxDevExists() {
|
||||||
|
return g_theGxDevicePtr != nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
EGxApi GxDevApi() {
|
EGxApi GxDevApi() {
|
||||||
return g_theGxDevicePtr->m_api;
|
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);
|
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);
|
EGxApi GxDevApi(void);
|
||||||
|
|
||||||
void* GxDevWindow();
|
void* GxDevWindow();
|
||||||
|
|||||||
Reference in new issue
Block a user