the SDL_Surface structure to be copied from.
the SDL_Rect structure representing the rectangle to be copied, or NULL to copy the entire surface.
the SDL_Surface structure that is the blit target.
the SDL_Rect structure representing the x and y position in the destination surface, or NULL for (0,0). The width and height are ignored, and are copied from srcrect. If you want a specific width and height, you should use SDL_BlitSurfaceScaled().
true on success or false on failure; call SDL_GetError() for more information.
Threadsafety: The same destination surface should not be used from two threads at once. It is safe to use the same source surface from multiple threads.
Performs a fast blit from the source surface to the destination surface with clipping.
If either srcrect or dstrect are NULL, the entire surface (src or dst) is copied while ensuring clipping to dst->clip_rect.
The final blit rectangles are saved in srcrect and dstrect after all clipping is performed.
The blit function should not be called on a locked surface.
The blit semantics for surfaces with and without blending and colorkey are defined as follows: