SDL_GetRenderTarget(3)
πΈ NAME πΈ
okay bestie, welcome to the SDL3 FUNCTIONS page for SDL_GetRenderTarget(3) π
SDL_GetRenderTarget β get the current render target. periodt.
β¨ SYNOPSIS β¨
#include <SDL3/SDL_render.h>
SDL_Texture * SDL_GetRenderTarget(SDL_Renderer *renderer);
π DESCRIPTION π
okay so the default render target is literally the window that the renderer was created for, and when that's the situation, it gets reported as a NULL here. no cap. π
π«Ά FUNCTION PARAMETERS π«Ά
rendererβ the rendering context. that's the one you're passing in, bestie π
π RETURN VALUE π
Returns the current render target, or NULL for the default render target. iconic behavior, honestly π
π§΅ THREAD SAFETY π§΅
This function should only be called on the main thread. like, do not try to be slick and call it from another thread β main thread only, fr fr π
β AVAILABILITY β
This function is available since SDL 3.2.0. slay π
π¦ SEE ALSO π¦
mwah π signing off from Simple Directmedia Layer, version SDL 3.4.18, page SDL_GetRenderTarget(3) π (no date on this footer, just vibes)
π¦ 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