SDL_RenderPoints(3)
π SDL_RenderPoints π
okay bestie, so this one lives in the SDL3 FUNCTIONS fam and it's literally called SDL_RenderPoints β yes, plural, because we're drawing a whole bunch of points, not just one π«Ά
β¨ NAME β¨
SDL_RenderPoints β Draw multiple points on the current rendering target at subpixel precision.
no cap, "subpixel precision" is the moment here, we love a renderer that doesn't snap to whole pixels πΈ
π SYNOPSIS π
#include <SDL3/SDL_render.h>
bool SDL_RenderPoints(SDL_Renderer *renderer, const SDL_FPoint *points, int count);
look at that signature. iconic. π
π¦ FUNCTION PARAMETERS π¦
rendererβ the renderer which should draw multiple points. this is the one doing the actual slaying.pointsβ the points to draw. yes girl, all of them.countβ the number of points to draw. the way that this tells the function how many ofpointsto actually care aboutβ¦ obsessed.
β RETURN VALUE β
Returns true on success or false on failure π₯² and if it's giving failure, call SDL_GetError() for more information. she'll tell you what went wrong, fr fr.
π THREAD SAFETY π
This function should only be called on the main thread. no side-quest threads for this one, bestie. main character energy only π
π AVAILABILITY π
This function is available since SDL 3.2.0. so if you're on something olderβ¦ it's not there, and that's on that π
π₯ SEE ALSO π₯
SDL_RenderPoint(3)β the singular version, for when you just need one point and not the whole friend group β¨
Simple Directmedia Layer wrote this one, and it's coming at you from SDL 3.4.18 π tysm for reading bestie, go draw some points, ily, mwah ππ§πΈ
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms