SDL_RenderPoint(3)
π SDL_RenderPoint(3) β the SDL3 function that draws u a single lil point
okay bestie, welcome to the SDL3 FUNCTIONS page for SDL_RenderPoint. this is the one that draws one point on the current rendering target, at subpixel precision. one point. that's it. that's the whole job. and honestly? iconic for it. β¨
πΈ NAME πΈ
SDL_RenderPoint β draws a point on the current rendering target, and it does it at subpixel precision π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_render.h>
bool SDL_RenderPoint(SDL_Renderer *renderer, float x, float y);
look at her. clean. simple. three args. no drama. π
π«Ά FUNCTION PARAMETERS π«Ά
rendererβ the renderer that should draw the point. it's the one holding the pen, basically. ποΈxβ the x coordinate of the point. yes it's afloat, that's the subpixel thing, we love precision in this house. πyβ the y coordinate of the point. same deal,float, same energy. β
π¦ RETURN VALUE π¦
returns true when it slays (success) or false when it doesn't (failure) π β and if it's giving failure, call SDL_GetError() for more info, she'll tell u what went wrong. fr fr.
π THREAD SAFETY π
this function should only be called on the main thread. no side-quest threads, no multitasking, no exceptions. main thread or nothing, bestie. π«π§΅
π AVAILABILITY π
this one's been around since SDL 3.2.0. vintage-ish but still fresh. π
π SEE ALSO π
SDL_RenderPoints(3)β for when one point just isn't enough and u need the whole squad. πβ¨
and that's the whole page, no cap. this gem lives in the Simple Directmedia Layer collection, version SDL 3.4.18, and it came straight from the SDL_RenderPoint(3) corner of the SDL 3 docs. go draw a point, main character. ππ«Ά
π¦ 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