فهرست منبع

Clarified the use of SDL_RENDERER_SOFTWARE when creating a renderer

Fixes https://github.com/libsdl-org/sdlwiki/issues/458
Sam Lantinga 1 سال پیش
والد
کامیت
8a4284b7df
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      include/SDL3/SDL_render.h

+ 2 - 0
include/SDL3/SDL_render.h

@@ -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.