Clarified the use of SDL_RENDERER_SOFTWARE when creating a renderer

Fixes https://github.com/libsdl-org/sdlwiki/issues/458
This commit is contained in:
Sam Lantinga
2024-01-27 12:45:25 -08:00
parent 2d94b4f490
commit 8a4284b7df

View File

@@ -203,6 +203,8 @@ extern DECLSPEC int SDLCALL SDL_CreateWindowAndRenderer(int width, int height, U
* need a specific renderer, specify NULL and SDL will attempt to choose the
* best option for you, based on what is available on the user's system.
*
* If you pass SDL_RENDERER_SOFTWARE in the flags, you will get a software renderer, otherwise you will get a hardware accelerated renderer if available.
*
* By default the rendering size matches the window size in pixels, but you
* can call SDL_SetRenderLogicalPresentation() to change the content size and
* scaling options.