Listing points in SDL?

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!

+3
source share
2 answers
0

Source: https://habr.com/ru/post/1750940/


All Articles