Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void render() {
- // Render background
- SDL_Rect dstBackground = { .x = background.x, .y = background.y, .w = background.w, .h = background.h };
- SDL_RenderCopy(gRenderer, background.texture, NULL, &dstBackground);
- // Render platform
- SDL_Rect dstPlatf = { .x = platform.x, .y = platform.y, .w = platform.w, .h = platform.h };
- SDL_RenderCopy(gRenderer, platform.texture, NULL, &dstPlatf);
- }
Add Comment
Please, Sign In to add comment