sdl2_frt/include
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
..
begin_code.h Fixed bug 4641 - clang and clang-cl builds on windows create -Wpragma-pack warnings 2019-06-10 08:46:20 -07:00
close_code.h
SDL_assert.h
SDL_atomic.h Fixed memory barrier macro check so it isn't quite so fragile 2019-06-30 23:58:31 -07:00
SDL_audio.h Fixed bug 3894 - Fuzzing crashes for SDL_LoadWAV 2019-06-08 19:02:42 -07:00
SDL_bits.h
SDL_blendmode.h
SDL_clipboard.h
SDL_config_android.h added SDL_strtokr() as a replacement for POSIX strtok_r (bug #4046.) 2019-11-20 20:40:50 +03:00
SDL_config_iphoneos.h added SDL_strtokr() as a replacement for POSIX strtok_r (bug #4046.) 2019-11-20 20:40:50 +03:00
SDL_config_macosx.h added SDL_strtokr() as a replacement for POSIX strtok_r (bug #4046.) 2019-11-20 20:40:50 +03:00
SDL_config_minimal.h
SDL_config_os2.h updated os/2 config file 2019-11-21 11:33:50 +03:00
SDL_config_pandora.h
SDL_config_psp.h
SDL_config_windows.h added SDL_strtokr() as a replacement for POSIX strtok_r (bug #4046.) 2019-11-20 20:40:50 +03:00
SDL_config_winrt.h added SDL_strtokr() as a replacement for POSIX strtok_r (bug #4046.) 2019-11-20 20:40:50 +03:00
SDL_config_wiz.h added SDL_strtokr() as a replacement for POSIX strtok_r (bug #4046.) 2019-11-20 20:40:50 +03:00
SDL_config.h
SDL_config.h.cmake CMakeLists.txt: add several missing function checks for unix case. 2019-11-21 10:33:56 +03:00
SDL_config.h.in Improved XInput VID/PID detection and added SDL_wcsstr() and SDL_wcsncmp() 2019-11-20 16:42:50 -08:00
SDL_copying.h
SDL_cpuinfo.h ARM: Create configure option --enable-arm-simd to govern assembly optimizations 2019-10-24 21:12:08 -04:00
SDL_egl.h Don't have Windows headers define min/max, in case they're defined by application code 2019-09-11 15:08:37 -07:00
SDL_endian.h SDL_endian.h: Use endian.h for OpenBSD. 2019-10-21 22:22:28 +03:00
SDL_error.h
SDL_events.h Fixed a comment typo (thanks, Dominus!). 2019-11-01 04:32:44 -04:00
SDL_filesystem.h
SDL_gamecontroller.h Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
SDL_gesture.h
SDL_haptic.h
SDL_hints.h Added an untested driver for the Nintendo GameCube adapter, based on code contributed by Ethan Lee 2019-12-19 15:01:35 -08:00
SDL_joystick.h Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
SDL_keyboard.h
SDL_keycode.h Remove 'Enum' suffixes (bug 4813) 2019-10-11 06:18:24 +02:00
SDL_loadso.h
SDL_log.h Remove 'Enum' suffixes (bug 4813) 2019-10-11 06:18:24 +02:00
SDL_main.h
SDL_messagebox.h SDL_messagebox.h: remove comma at end of enumerator list 2019-09-22 21:41:20 +03:00
SDL_metal.h Add public APIs for creating a Metal view attached to an SDL window. Add SDL_metal.h. 2019-08-05 12:35:32 -03:00
SDL_mouse.h
SDL_mutex.h
SDL_name.h
SDL_opengl_glext.h Don't have Windows headers define min/max, in case they're defined by application code 2019-09-11 15:08:37 -07:00
SDL_opengl.h
SDL_opengles2_gl2.h
SDL_opengles2_gl2ext.h
SDL_opengles2_gl2platform.h
SDL_opengles2_khrplatform.h
SDL_opengles2.h
SDL_opengles.h
SDL_pixels.h Added SDL_PIXELFORMAT_BGR444 2019-11-02 22:58:52 +00:00
SDL_platform.h
SDL_power.h
SDL_quit.h
SDL_rect.h
SDL_render.h Fixed bug 4914 - Expose SDL_ScaleMode and add SDL_SetTextureScaleMode/SDL_GetTextureScaleMode 2019-12-22 13:39:44 -08:00
SDL_revision.h
SDL_rwops.h Fixed bug 4526 - replace SDL_RW* macros with functions for using in bindings 2019-06-08 17:43:23 -07:00
SDL_scancode.h
SDL_sensor.h
SDL_shape.h
SDL_stdinc.h Improved XInput VID/PID detection and added SDL_wcsstr() and SDL_wcsncmp() 2019-11-20 16:42:50 -08:00
SDL_surface.h
SDL_system.h
SDL_syswm.h haiku: Implement message box for Haiku 2019-11-11 16:44:40 -05:00
SDL_test_assert.h
SDL_test_common.h test: unify all the command line usage logging. 2019-05-28 17:39:13 -04:00
SDL_test_compare.h
SDL_test_crc32.h
SDL_test_font.h
SDL_test_fuzzer.h
SDL_test_harness.h
SDL_test_images.h
SDL_test_log.h
SDL_test_md5.h
SDL_test_memory.h
SDL_test_random.h
SDL_test.h
SDL_thread.h
SDL_timer.h
SDL_touch.h
SDL_types.h
SDL_version.h Updated SDL development builds to version 2.0.11 2019-09-22 10:37:16 -07:00
SDL_video.h include: Removed a FIXME comment. 2019-10-15 14:17:32 -04:00
SDL_vulkan.h Fixed bug 4570 - Support Vulkan Portability rather than MoltenVK specifically 2019-06-11 18:13:46 -07:00
SDL.h Add public APIs for creating a Metal view attached to an SDL window. Add SDL_metal.h. 2019-08-05 12:35:32 -03:00