mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-10 19:35:59 +03:00
feat(gx): detach CGxDeviceGLSDL from GxApi_OpenGl handling
This commit is contained in:
parent
c6cf2814df
commit
6bf87c4f2d
@ -123,14 +123,17 @@ CGxDevice* CGxDevice::NewGLL() {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
CGxDevice* CGxDevice::NewOpenGl() {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
#if defined(WHOA_SYSTEM_WIN) || defined(WHOA_SYSTEM_LINUX)
|
#if defined(WHOA_SYSTEM_WIN) || defined(WHOA_SYSTEM_LINUX)
|
||||||
CGxDevice* CGxDevice::NewOpenGl() {
|
CGxDevice* CGxDevice::NewGLSDL() {
|
||||||
auto m = SMemAlloc(sizeof(CGxDeviceGLSDL), __FILE__, __LINE__, 0x0);
|
auto m = SMemAlloc(sizeof(CGxDeviceGLSDL), __FILE__, __LINE__, 0x0);
|
||||||
return new (m) CGxDeviceGLSDL();
|
return new (m) CGxDeviceGLSDL();
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
CGxDevice* CGxDevice::NewOpenGl() {
|
CGxDevice* CGxDevice::NewGLSDL() {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -56,6 +56,9 @@ class CGxDevice {
|
|||||||
#endif
|
#endif
|
||||||
#if defined(WHOA_SYSTEM_MAC)
|
#if defined(WHOA_SYSTEM_MAC)
|
||||||
static CGxDevice* NewGLL();
|
static CGxDevice* NewGLL();
|
||||||
|
#endif
|
||||||
|
#if defined(WHOA_SYSTEM_LINUX) || defined(WHOA_SYSTEM_WIN)
|
||||||
|
static CGxDevice* NewGLSDL();
|
||||||
#endif
|
#endif
|
||||||
static CGxDevice* NewOpenGl();
|
static CGxDevice* NewOpenGl();
|
||||||
static uint32_t PrimCalcCount(EGxPrim primType, uint32_t count);
|
static uint32_t PrimCalcCount(EGxPrim primType, uint32_t count);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user