GentenStudios / QuartzEngine

Nolonger used, see Phoenix repo
BSD 3-Clause "New" or "Revised" License
34 stars 10 forks source link

Sort out the SDL platform backend. #156

Open DontBelieveMe opened 4 years ago

DontBelieveMe commented 4 years ago

Currently we only support SDL as a platform abstraction layer, so we sort this out so that any platform access is routed through SDL instead of platform specific #ifdefs or platform specific files littered about the codebase. All OS specific code should be within the Platform/ directory (where currently the only supported "platform" is SDL). Off the top of my head one place this needs doing is in the Plugin loader code - currently there is an ifdef for each platform specific "dlopen" like API, but SDL provides

SDL_LoadObject(...)
SDL_LoadFunction(...)
SDL_UnloadObject(...)

which we can use to do the same thing in the SDL backend.