Guest User

Untitled

a guest
Nov 18th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. void render() {
  2.  
  3. // Render background
  4. SDL_Rect dstBackground = { .x = background.x, .y = background.y, .w = background.w, .h = background.h };
  5. SDL_RenderCopy(gRenderer, background.texture, NULL, &dstBackground);
  6.  
  7. // Render platform
  8. SDL_Rect dstPlatf = { .x = platform.x, .y = platform.y, .w = platform.w, .h = platform.h };
  9. SDL_RenderCopy(gRenderer, platform.texture, NULL, &dstPlatf);
  10. }
Add Comment
Please, Sign In to add comment