Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
2
Newest
 Teacher
Impact
~2k people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Sep
25
comment SDL2 render to texture support
I usually keep a "scene" space where the sprites are, and a screen space. When rendering I translate the screen rectangle to scene coordinates (apply zoom, scroll, etc), then pick up the sprites that fall in that translated rectangle and render them accordingly. I wouldn't advise rendering the entire scene to a texture and from that pick up a smaller section to render to screen, unless your particular game is suited for that (small scenes, probably low res pixel art)
Sep
24
awarded  Teacher
Sep
24
answered SDL2 render to texture support
Nov
22
awarded  Autobiographer