sdlSetTextureScaleMode function

int sdlSetTextureScaleMode(
  1. Pointer<SdlTexture> texture,
  2. int scaleMode
)

Set the scale mode used for texture scale operations.

If the scale mode is not supported, the closest supported mode is chosen.

\param texture The texture to update. \param scaleMode the SDL_ScaleMode to use for texture scaling. \returns 0 on success, or -1 if the texture is not valid.

\since This function is available since SDL 2.0.12.

\sa SDL_GetTextureScaleMode

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

Implementation

int sdlSetTextureScaleMode(Pointer<SdlTexture> texture, int scaleMode) {
  final sdlSetTextureScaleModeLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Pointer<SdlTexture> texture, Int32 scaleMode),
      int Function(Pointer<SdlTexture> texture,
          int scaleMode)>('SDL_SetTextureScaleMode');
  return sdlSetTextureScaleModeLookupFunction(texture, scaleMode);
}