SDL - BlitSurface vs LowerBlit

549 views Asked by At

I just realized that SDL have two functions to blitting. One is SDL_BlitSurface and the second one is SDL_LowerBlit. Moreover, both of these functions have their scaled version (SDL_BlitScaled, SDL_LowerBlitScaled). What is difference between these two functions? Doc says that LowerBlit "perform a low-level surface blitting only". What should I present under this?

1

There are 1 answers

0
Sławomir Uchto On

The answer is in documentation under Remarks section of both functions.

SDL_LowerBlit:

This is a semi-private blit function and it performs low-level surface blitting, assuming the input rectangles have already been clipped.

SDL_BlitSurface:

This is the public blit function, and it performs rectangle validation and clipping before passing it to SDL_LowerBlit().