Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Questions regarding blitting


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 eleidon   Members   -  Reputation: 185

Like
0Likes
Like

Posted 18 March 2014 - 02:57 PM

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



Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS