getScaleMode method
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
int? getScaleMode() {
int? result;
var scaleModePointer = calloc<Int32>();
if (sdlGetTextureScaleMode(this, scaleModePointer) == true) {
result = scaleModePointer.value;
}
calloc.free(scaleModePointer);
return result;
}