spegling av
https://github.com/minetest/irrlicht.git
synced 2025-09-16 21:36:59 +02:00
Refactor SDL device to use the same abstraction as other devices
In particular this makes the OpenGL procedure stuff work. fixes https://github.com/minetest/minetest/issues/12265
This commit is contained in:
@@ -44,13 +44,7 @@ namespace video
|
||||
EOFPS_DISABLE_TO_ENABLE // switch from programmable to fixed pipeline.
|
||||
};
|
||||
|
||||
#if defined(_IRR_COMPILE_WITH_WINDOWS_DEVICE_) || defined(_IRR_COMPILE_WITH_X11_DEVICE_) || defined(_IRR_COMPILE_WITH_OSX_DEVICE_)
|
||||
COpenGLDriver(const SIrrlichtCreationParameters& params, io::IFileSystem* io, IContextManager* contextManager);
|
||||
#endif
|
||||
|
||||
#ifdef _IRR_COMPILE_WITH_SDL_DEVICE_
|
||||
COpenGLDriver(const SIrrlichtCreationParameters& params, io::IFileSystem* io, CIrrDeviceSDL* device);
|
||||
#endif
|
||||
|
||||
bool initDriver();
|
||||
|
||||
@@ -520,10 +514,6 @@ namespace video
|
||||
S3DVertex Quad2DVertices[4];
|
||||
static const u16 Quad2DIndices[4];
|
||||
|
||||
#ifdef _IRR_COMPILE_WITH_SDL_DEVICE_
|
||||
CIrrDeviceSDL *SDLDevice;
|
||||
#endif
|
||||
|
||||
IContextManager* ContextManager;
|
||||
};
|
||||
|
||||
|
Referens i nytt ärende
Block a user