Closed Sackzement closed 3 months ago
In general we recommend just using:
#include <SDL3/SDL.h>
In general we recommend just using:
#include <SDL3/SDL.h>
Is it just because it is easier? I like to include only the headers which are used. It makes auto-completion more clear. Am I missing something?
It's just because it's easier, and also because if you're using precompiled headers you want the same content in the precompiled header everywhere you use it.
Thanks for explaining! Some day I'll have to switch to these fancy "new" features like precompiled headers and unity builds. Maybe when I stop drinking coffee :)
Edit: Unity builds would be for constantly full coffee cups.
A wiki page with an overview of the header inclusions could be helpful. To give you an idea, here is a screenshot of a graph I created a while ago.
in reference to libsdl-org/SDL#9440