Fellow Ogre Friends,
I am writing my first Ogre app. I am trying to use SDL3 with Ogre-Next.
I would love to avoid lots of "#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32" type of things. I believe those tests belong internally to Ogre and SDL.
In SDL2, there was a SDL_CreateWindowFrom() method that takes a void pointer to the (OS specific) Ogre window handler. This method does not exist anymore in SDL3.
Anyway, I find that seamlessly integrating Ogre-Next and SDL3 would be something great. So I guess it would be nice if Ogre-Next developers could talk to SDL3 developers and figure out what information Ogre needs to provide so that the Ogre window can be used by SDL3. It would be great if this information exchange could be done in a OS agnostic manner (like a void pointer). This way, the library user (me ) would not have to deal with OS differences.
I have created a topic in SDL's forum:
https://discourse.libsdl.org/t/replacin ... from/53648
Maybe we do not even need a "OgreSDLWindow" specific class if we can successfully implement this. It would be great to be able to use Ogre-Next and SDL3 together witout Ogre or SDL needing to be aware of each other.
I think using those two libraries to handle the same window is a recurrent topic. The solutions I found are either too hackish, too complicated or too OS specific. No solution I found make me very insecure because I cannot be sure things are being done "the proper way (tm)". Even less not that we have options like Vulkan being supported by both libraries.
I suppose that Ogre tweaks the window settings much more and therefore the easiest approach would be to have Ogre create the window and SDL "hijacking" it.