table of contents
other versions
SDL_SetWindowData(3) | SDL3 FUNCTIONS | SDL_SetWindowData(3) |
NAME¶
SDL_SetWindowData - Associate an arbitrary named pointer with a window.
SYNOPSIS¶
#include "SDL3/SDL.h"
void* SDL_SetWindowData(SDL_Window *window, const char *name, void *userdata);
DESCRIPTION¶
name is case-sensitive.
FUNCTION PARAMETERS¶
RETURN VALUE¶
Returns the previous value associated with name .
AVAILABILITY¶
This function is available since SDL 3.0.0.
SEE ALSO¶
SDL_GetWindowData(3)
SDL 3.0.0 | SDL |