If I have an array of coordinates for the path (for example, in a paint program), what is the best way to render the whole path using the SDL?
I looked at setting the pixels separately, but from what I saw, this is a bad idea.
I also thought about drawing all the coordinates as SDL_Rect, but rendering a large list of lines of each frame sounds slow.
Is there an easy way to achieve this effect?
Thank!
source
share