Scroll to navigation

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

the window to associate with the pointer
the name of the pointer
the associated pointer

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