Associate an arbitrary named pointer with a window.
void* SDL_SetWindowData(SDL_Window *window, const char *name, void *userdata);
window | the window to associate with the pointer |
name | the name of the pointer |
userdata | the associated pointer |
Returns the previous value associated with name
.
name
is case-sensitive.
This function is available since SDL 3.0.0.