sdlGetTextureScaleMode function

int 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. \return 0 on success, or -1 if the texture is not valid.

\since This function is available since SDL 2.0.12.

\sa SDL_SetTextureScaleMode

extern DECLSPEC int SDLCALL SDL_GetTextureScaleMode(SDL_Texture * texture, SDL_ScaleMode *scaleMode)

Implementation

int sdlGetTextureScaleMode(
    Pointer<SdlTexture> texture, Pointer<Int32> scaleMode) {
  final sdlGetTextureScaleModeLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Pointer<SdlTexture> texture, Pointer<Int32> scaleMode),
      int Function(Pointer<SdlTexture> texture,
          Pointer<Int32> scaleMode)>('SDL_GetTextureScaleMode');
  return sdlGetTextureScaleModeLookupFunction(texture, scaleMode);
}