SDL/src
Sam Lantinga 5e19e66c73 Fixed bug 4914 - Expose SDL_ScaleMode and add SDL_SetTextureScaleMode/SDL_GetTextureScaleMode
Konrad

This was something rather trivial to add, but asked at least several times before (I did google about it as well).

It should be possible to dynamically change scaling mode of the texture. It is actually trivial task, but until now it was only possible with a hint before creating a texture.

I needed it for my game as well, so I took the liberty of writing it myself.

This patch adds following functions:

SDL_SetTextureScaleMode(SDL_Texture * texture, SDL_ScaleMode scaleMode);
SDL_GetTextureScaleMode(SDL_Texture * texture, SDL_ScaleMode *scaleMode);

That way you can change texture scaling on the fly.
2019-12-22 13:39:44 -08:00
..
atomic atomic: Support compiling on ARMv3 2019-10-11 22:08:53 +01:00
audio pulseaudio: don't let FlushCapture get stuck in an infinite loop on shutdown. 2019-12-03 03:53:06 -05:00
core Android: same way as in nativePause(), resume events are sent from SDL thread 2019-12-21 22:40:33 +01:00
cpuinfo Fixed unused function warning on Android 2019-11-18 10:48:14 -08:00
dynapi Fixed bug 4914 - Expose SDL_ScaleMode and add SDL_SetTextureScaleMode/SDL_GetTextureScaleMode 2019-12-22 13:39:44 -08:00
events Fixed bug 4814 - Missing scancodes on Linux 2019-11-16 22:45:49 -08:00
file Readability: remove redundant cast to the same type 2019-10-30 15:13:55 +01:00
filesystem Readability: remove redundant cast to the same type 2019-10-30 15:13:55 +01:00
haptic Updated copyright for 2019 2019-01-04 22:01:14 -08:00
hidapi Fixed duplicate controller entries on Mac OS X when using libusb, due to the HID interface number not being available in the Mac OS X HID code. 2019-12-20 21:00:16 -08:00
joystick Fix shutting down HIDAPI device with multiple joysticks 2019-12-22 13:15:11 -08:00
libm Readability: change some pointer parameter to be pointer to const 2019-10-30 16:06:51 +01:00
loadso Readability: remove redundant cast 2019-10-30 16:20:58 +01:00
main haiku: mouse_relative fix 2019-11-11 22:23:33 -05:00
power SDL_syspower.c: remove redundant expression 2019-10-30 16:12:39 +01:00
render Fixed bug 4914 - Expose SDL_ScaleMode and add SDL_SetTextureScaleMode/SDL_GetTextureScaleMode 2019-12-22 13:39:44 -08:00
sensor Fixed bug 4837 - Use after free in SDL_SensorUpdate (Thanks!) 2019-10-23 08:46:59 +02:00
stdlib Improved XInput VID/PID detection and added SDL_wcsstr() and SDL_wcsncmp() 2019-11-20 16:42:50 -08:00
test Added SDL_PIXELFORMAT_BGR444 2019-11-02 22:58:52 +00:00
thread Remove redundant 'SDL_GetErrBuf' declaration 2019-10-30 17:35:40 +01:00
timer Updated copyright for 2019 2019-01-04 22:01:14 -08:00
video Fixed bug 4914 - Expose SDL_ScaleMode and add SDL_SetTextureScaleMode/SDL_GetTextureScaleMode 2019-12-22 13:39:44 -08:00
SDL.c SDL.c (SDL_ExitProcess): unconstify its param to match its declaration. 2019-11-20 02:47:40 +03:00
SDL_assert.c Readability: remove const-qualifation from function declaration 2019-10-30 15:43:49 +01:00
SDL_assert_c.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_dataqueue.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_dataqueue.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_error.c Remove redundant 'SDL_GetErrBuf' declaration 2019-10-30 17:35:40 +01:00
SDL_error_c.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_hints.c Fix missing prototype warning 2019-11-16 22:59:56 +01:00
SDL_hints_c.h Added a utility function to simplify the hint handling logic 2019-11-13 21:53:01 -08:00
SDL_internal.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_log.c Copypaste SDL_NSLog to UIKit backend, document it as such 2019-07-17 23:20:57 -04:00