sdlGetRenderColorScale function
Get the color scale used for render operations.
\param renderer the rendering context. \param scale a pointer filled in with the current color scale value. \returns true on success or false on failure; call SDL_GetError() for more information.
\threadsafety This function should only be called on the main thread.
\since This function is available since SDL 3.1.3.
\sa SDL_SetRenderColorScale
extern SDL_DECLSPEC bool SDLCALL SDL_GetRenderColorScale(SDL_Renderer *renderer, float *scale)
Implementation
bool sdlGetRenderColorScale(
Pointer<SdlRenderer> renderer, Pointer<Float> scale) {
final sdlGetRenderColorScaleLookupFunction = libSdl3.lookupFunction<
Uint8 Function(Pointer<SdlRenderer> renderer, Pointer<Float> scale),
int Function(Pointer<SdlRenderer> renderer,
Pointer<Float> scale)>('SDL_GetRenderColorScale');
return sdlGetRenderColorScaleLookupFunction(renderer, scale) == 1;
}