SDL_BLITSURFACEUNCHECKEDSCALED(3)
π SDL_BlitSurfaceUncheckedScaled π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today we're getting into the low-level stuff. like, the backstage-pass, no-security-guard, you-better-know-what-you're-doing stuff. π
β¨ NAME β¨
SDL_BlitSurfaceUncheckedScaled β Perform low-level surface scaled blitting only.
like, ONLY. it does one thing. it does it well. main character behavior fr. π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_surface.h>
bool SDL_BlitSurfaceUncheckedScaled(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, const SDL_Rect *dstrect, SDL_ScaleMode scaleMode);
look at her. five arguments. no notes. π
β¨ DESCRIPTION β¨
so here's the tea: this is a semi-private function π«£ and it performs low-level surface blitting, assuming the input rectangles have already been clipped.
that "assuming" is doing a LOT of heavy lifting, bestie. it means you already did the clipping. it's not gonna double-check you. it's not gonna hold your hand. it's just gonna blit. no cap. π₯
β¨ FUNCTION PARAMETERS β¨
srcβ theSDL_Surfacestructure to be copied from. this is the source, the origin, the place we're stealing pixels from πsrcrectβ theSDL_Rectstructure representing the rectangle to be copied, may not beNULL. like seriously, do not passNULL. it's giving crash energy πdstβ theSDL_Surfacestructure that is the blit target. the destination. where the pixels are going to live their new life β¨dstrectβ theSDL_Rectstructure representing the target rectangle in the destination surface, may not beNULL. same rule, same drama πscaleModeβ theSDL_ScaleModeto be used. this is the vibe of the scaling, iykyk πΈ
β¨ RETURN VALUE β¨
returns true on success or false on failure π₯² and if it fails you gotta call SDL_GetError() for more information. she will tell you what went wrong, bestie. just ask her. π«Ά
β¨ THREAD SAFETY β¨
β οΈ Only one thread should be using thesrcanddstsurfaces at any given time.
one thread. ONE. this is not a group project, this is a solo mission. sharing is not caring here, it's a race condition π¨π
β¨ AVAILABILITY β¨
this function is available since SDL 3.2.0 β so if you're on something older... girl. upgrade. π
β¨ SEE ALSO β¨
SDL_BlitSurfaceScaled(3)β the one that actually checks stuff for you π go read that one too, she's the responsible sister
mwah π that's the whole page! this iconic lil entry came to you from Simple Directmedia Layer, SDL 3.4.18, and honestly she ate. go blit something gorgeous, bestie. π¦ππ
π¦ 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