sdlGetTextureScaleMode function render

bool sdlGetTextureScaleMode(
  1. Pointer<SdlTexture> texture,
  2. Pointer<Int32> scaleMode
)

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.2.0.

\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 = _libSdl
      .lookupFunction<
        Uint8 Function(Pointer<SdlTexture> texture, Pointer<Int32> scaleMode),
        int Function(Pointer<SdlTexture> texture, Pointer<Int32> scaleMode)
      >('SDL_GetTextureScaleMode');
  return sdlGetTextureScaleModeLookupFunction(texture, scaleMode) == 1;
}