Open Ryan14411 opened 3 years ago
I would think something like that should be possible. I use SDL for my Window, Events (mouse/keyboard), OpenGL and Audio and it's pretty well abstracted out.
https://github.com/danoon2/Boxedwine/tree/master/platform/sdl
I don't have any immediate plans to something like that right now. Every year my todo list grows faster than I can complete items. :)
its good to know that it could be a possibility at some point! And yes i can imagine, if i could code id be helping
When you choose to use the libretro API, your program gets turned into a single library file (called a ‘libretro core’). A frontend that supports the libretro API can then load that library file and run the app. The frontend’s responsibility is to provide all the implementation-specific details, such as video/audio/input drivers. The libretro core’s responsibility is solely to provide the main program. You therefore don’t have to worry about writing different video drivers for Direct3D, OpenGL or worrying about catering to all possible input APIs/sound APIs/supporting all known joypads/etc. This is none of your concern at the libretro core implementation level.