sdlGetTextureScaleMode function
Get the scale mode used for texture scale operations.
\param texture the texture to query. \param scaleMode a pointer filled in with the current scale mode. \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_SetTextureScaleMode
extern SDL_DECLSPEC bool SDLCALL SDL_GetTextureScaleMode(SDL_Texture *texture, SDL_ScaleMode *scaleMode)
Implementation
bool sdlGetTextureScaleMode(
Pointer<SdlTexture> texture, Pointer<Int32> scaleMode) {
final sdlGetTextureScaleModeLookupFunction = libSdl3.lookupFunction<
Uint8 Function(Pointer<SdlTexture> texture, Pointer<Int32> scaleMode),
int Function(Pointer<SdlTexture> texture,
Pointer<Int32> scaleMode)>('SDL_GetTextureScaleMode');
return sdlGetTextureScaleModeLookupFunction(texture, scaleMode) == 1;
}