how to specify "width" or "point size" in SDL 2.0 draw points, lines or rect

c, sdl-2

Solution

SDL does not support it natively,use the SDL_gfx library.

There's a function thicklineRGBA which allows you to specify line width.

int thickLineRGBA (SDL_Renderer *rd, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint8 width, Uint8 r, Uint8 g, Uint8 b, Uint8 a)

Problem

I am trying to use SDL 2.0 function `SDL_RenderDrawPoints()` to plot data points on the screen. In "processing.org", I can use `strokeWeight()` to change the size of my "points". How to do this in SDL 2.0

Original source