mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-08 15:39:55 +03:00
feat(gx): detach CGxDeviceGLSDL from GxApi_OpenGl handling
This commit is contained in:
1 parent
c6cf2814df
commit
6bf87c4f2d
2 files changed
+8
-2
No files matched your search
@@ -123,14 +123,17 @@ CGxDevice* CGxDevice::NewGLL() {
|
||||
}
|
||||
#endif
|
||||
|
||||
CGxDevice* CGxDevice::NewOpenGl() {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
#if defined(WHOA_SYSTEM_WIN) || defined(WHOA_SYSTEM_LINUX)
|
||||
CGxDevice* CGxDevice::NewOpenGl() {
|
||||
CGxDevice* CGxDevice::NewGLSDL() {
|
||||
auto m = SMemAlloc(sizeof(CGxDeviceGLSDL), __FILE__, __LINE__, 0x0);
|
||||
return new (m) CGxDeviceGLSDL();
|
||||
}
|
||||
#else
|
||||
CGxDevice* CGxDevice::NewOpenGl() {
|
||||
CGxDevice* CGxDevice::NewGLSDL() {
|
||||
return nullptr;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -56,6 +56,9 @@ class CGxDevice {
|
||||
#endif
|
||||
#if defined(WHOA_SYSTEM_MAC)
|
||||
static CGxDevice* NewGLL();
|
||||
#endif
|
||||
#if defined(WHOA_SYSTEM_LINUX) || defined(WHOA_SYSTEM_WIN)
|
||||
static CGxDevice* NewGLSDL();
|
||||
#endif
|
||||
static CGxDevice* NewOpenGl();
|
||||
static uint32_t PrimCalcCount(EGxPrim primType, uint32_t count);
|
||||
|
||||
Reference in new issue
Block a user