4 ms·
... And those developers are generally right. I would use SDL in Linux ports of things because it is the closest to a reasonable native API on Linux (which say
by jblow 11y ago
... And those developers are generally right.
I would use SDL in Linux ports of things because it is the closest to a reasonable native API on Linux (which says more about Linux than SDL actually). But even having done so I would then use native APIs in Windows, OSX, etc.
If your standard of quality is high enough, it won't really be possible to reach it using a blanket API like SDL everywhere.
- exprx 11y agoNothing on the post above is even remotely accurate.
- exprx 11y agoSo much explained disagreement.. not?
- waitForCompiler 11y agoSo it means you prefer SDL2 on Linux because it is the least awful. Can you elaborate why you would not use it on e.g. Windows? Which parts of it do you consider inappropriate do use it cross-platform?
- SXX 11y agoIt's reasonable to keep native code when you already spend months / years working with it. Or if you're huge company with hundreds of programmers that want to have own everything. Though when it's relatively new game with own engine and small team maintenance cost for own cross platform code going to be high. Even on Windows there is tons of small problems that already solved within SDL. It's really not fun to debug problems of XP, Vista and some not updated systems. PS: Also as far as I aware SDL2 currently used by all Valve games on all platforms. I pretty sure they wouldn't be using it if it's wasn't working well.
- yoklov 11y agoIIRC Valve uses SDL for some things but also goes around it and uses platform APIs for other things.