SDL_BlitSurfaceUnchecked(3)
π SDL_BlitSurfaceUnchecked(3) π
okay bestie, so this one lives in the SDL3 FUNCTIONS section of the manual and it's literally called SDL_BlitSurfaceUnchecked. let's get into it β¨
πΈ NAME πΈ
SDL_BlitSurfaceUnchecked β Perform low-level surface blitting only. periodt. π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_surface.h>
bool SDL_BlitSurfaceUnchecked(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, const SDL_Rect *dstrect);
like. look at her. she's right there. π
π¦ DESCRIPTION π¦
so this is a semi-private blit function, bestie. she does low-level surface blitting, and the way that she works is she assumes the input rectangles have already been clipped.
that's the whole vibe. no vibe check on your rects, no clipping safety net, she just goes. π
π FUNCTION PARAMETERS π
srcβ theSDL_Surfacestructure to be copied from. the source, the origin, the main character we're lifting pixels from πsrcrectβ theSDL_Rectstructure representing the rectangle to be copied. heads up: this one may not beNULL. like, at all. π«dstβ theSDL_Surfacestructure that is the blit target. the destination. where the pixels land π«Άdstrectβ theSDL_Rectstructure representing the target rectangle in the destination surface. and yep, this one may not beNULLeither. π
π RETURN VALUE π
returns true on success or false on failure. and if it fails?? call SDL_GetError() for more information β she will tell you what went wrong, ngl. π
π§ THREAD SAFETY π§
Only one thread should be using thesrcanddstsurfaces at any given time.
that's it, that's the rule. no sharing, no multitasking on the same surfaces, we don't do that here. π«π§΅
β AVAILABILITY β
this function is available since SDL 3.2.0. she's new-ish and she ate π₯
π SEE ALSO π
SDL_BlitSurface(3)β the safe one, the clipped one, the one you probably want first π
and that's the page, bestie!! source is Simple Directmedia Layer, version SDL 3.4.18, and it's the SDL_BlitSurfaceUnchecked(3) page π go clip your rects first, love u, bye πβ¨π¦
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms