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