SDL_DestroyRenderer(3)

✨ SDL_DestroyRenderer(3) ✨

okay so welcome to the SDL3 FUNCTIONS manual page for SDL_DestroyRenderer(3), bestie. it's giving "clean up your room before you move out," but make it renderer. slay. πŸ’…


🌸 NAME 🌸

SDL_DestroyRenderer β€” destroy the rendering context for a window and free all associated textures. no cap, that's the whole job. 🫢

πŸ“œ SYNOPSIS πŸ“œ

#include <SDL3/SDL_render.h>

void SDL_DestroyRenderer(SDL_Renderer *renderer);

πŸ’– DESCRIPTION πŸ’–

This should be called before destroying the associated window. like, the renderer is the main character and the window is its stage; tear down the stage after the show, not before. lowkey important, highkey iconic. ✨

πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • renderer β€” the rendering context. that's the one you're destroying, bestie. πŸ’€

🧡 THREAD SAFETY 🧡

This function should only be called on the main thread. do not call it from some random side thread, fr fr. that's not the vibe check you want to fail. 😭

🌈 AVAILABILITY 🌈

This function is available since SDL 3.2.0. periodt. ⭐

πŸ‘€ SEE ALSO πŸ‘€


and that's a wrap! this lil page came from Simple Directmedia Layer, version SDL 3.4.18, for SDL_DestroyRenderer(3). the footer didn't include a date, so I'm not inventing one β€” that would be fake news, and we don't do that. obsessed with you for reading the whole thing. πŸŽ€πŸ’–

πŸ“¦ where this page comes from