Advertisement

Questions regarding blitting

Started by March 18, 2014 08:57 PM
-1 comments, last by eleidon 10 years, 8 months ago

Hi!

Just a couple of questions regarding SDL blitting:

1) When copying pixels 1:1 from a surface onto another where the opacity, colormods and such do not matter,
is the getpixel/putpixel method (described here:http://sdl.beuc.net/sdl.wiki/Pixel_Access) faster than SDL_BlitSurface?

2) In SDL_surface.c of the SDL-2.0.2 source code, where SDL_LowerBlit can be found, there is this piece of code at line 514:


return (src->map->blit(src, srcrect, dst, dstrect));

Where in the code base can I find what map->blit(src, srcrect, dst, dstrect) does? I'm trying to understand how the blitting works better.

Thanks in advance! :)

This topic is closed to new replies.

Advertisement