I want to add pixel splatters and particle effects to a game. For this my options were to have a bunch of pre-made animations in the form of textures, OR create a particle engine.
For the particle engine approach, my options as far as I know are to create pixels and render them either using:
- SDL_RenderDrawPoint(s) (Using SDL_SetRenderDrawColor)
- SDL_RenderCopy (Using Textures with SDL_SetTextureColorMod)
I'm not sure what's a better approach. #2 is probably easier as I have a whole system built around fast texture rendering (not necessarily faster than 1., but seemingly easier to implement with my current system.) #1 seems ideal because it's in the SDL2 library for a reason I'd think, but really I'm unsure which approach I should go with.