Selaa lähdekoodia

Added a note that SDL_RenderReadPixels() should be called before SDL_RenderPresent()

Sam Lantinga 3 vuotta sitten
vanhempi
commit
40b7326b38
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      include/SDL_render.h

+ 2 - 1
include/SDL_render.h

@@ -1662,7 +1662,8 @@ extern DECLSPEC int SDLCALL SDL_RenderGeometryRaw(SDL_Renderer *renderer,
  * Read pixels from the current rendering target to an array of pixels.
  *
  * **WARNING**: This is a very slow operation, and should not be used
- * frequently.
+ * frequently. If you're using this on the main rendering target, it
+ * should be called after rendering and before SDL_RenderPresent().
  *
  * `pitch` specifies the number of bytes between rows in the destination
  * `pixels` data. This allows you to write to a subrectangle or have padded