mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 00:32: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() {
|
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();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user