StrataSource / Engine

Issue tracker for Strata Source
47 stars 2 forks source link

Enhancement: Use SDL2 on all platforms #228

Open JJL772 opened 3 years ago

JJL772 commented 3 years ago

What would this enhancement be for?

Other

Describe your enhancement suggestion in more detail

In Chaos (and most other branches of source), SDL2 is only used for windowing on Linux. OSX uses Coca and Windows uses native win32 API stuff. This creates a ton of additional code paths that are difficult to maintain and work with.

Chaos should work towards replacing Windows and OSX specific windowing code with the equivalent SDL2 stuff. This code already exists on Linux, so it's just a matter of getting it running on the other platforms too.

hexaflexahexagon commented 3 years ago

I don't think we plan on supporting OSX anytime soon so you can probably scratch that from the list

JJL772 commented 3 years ago

we'd basically just need to remove OSX windowing code paths. SDL2 already supports OSX so we could literally use the same code for all 3 platforms.