Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 18 Dec 2011
Offline Last Active Oct 23 2015 11:29 AM

#5041637 Scaling images

Posted by on 10 March 2013 - 05:02 PM

http://www.sdltutorials.com/sdl-scale-surface enjoy ;p

#5037753 [SOLVED] SDL can't find image.

Posted by on 28 February 2013 - 03:22 PM

You are using the blitscreen the opposite way : http://sdl.beuc.net/sdl.wiki/SDL_BlitSurface

SDL_BlitSurface takes 4 arguments, first one is the source surface or the surface you want to place ontop of your screen ( the image ) 

The important part is that the 3th argument is the destination argument or the surface you are drawing too ( the screen)



as a side node If the secound argument is NULL, the entire surface is copied.,if the 4th argument is NULL, then the destination position (upper left corner) is (0, 0).


In 1 word your function should look like SDL_BlitSurface( hello, NULL screen, NULL );