Jump to content
  • Advertisement
Sign in to follow this  
eleidon

Questions regarding blitting

This topic is 2040 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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! :)

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!