sdlGetWindowIccProfile function
Get the raw ICC profile data for the screen the window is currently on.
\param window the window to query. \param size the size of the ICC profile. \returns the raw ICC profile data on success or NULL on failure; call SDL_GetError() for more information. This should be freed with SDL_free() when it is no longer needed.
\threadsafety This function should only be called on the main thread.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC void * SDLCALL SDL_GetWindowICCProfile(SDL_Window *window, size_t *size)
Implementation
Pointer<NativeType> sdlGetWindowIccProfile(
Pointer<SdlWindow> window, Pointer<Uint32> size) {
final sdlGetWindowIccProfileLookupFunction = libSdl3.lookupFunction<
Pointer<NativeType> Function(
Pointer<SdlWindow> window, Pointer<Uint32> size),
Pointer<NativeType> Function(Pointer<SdlWindow> window,
Pointer<Uint32> size)>('SDL_GetWindowICCProfile');
return sdlGetWindowIccProfileLookupFunction(window, size);
}