SDL/include/SDL3
Sam Lantinga dcd17f5473 Renderer logical size is now implemented as a render target
This fixes rounding errors with coordinate scaling and gives more flexibility in the presentation, as well as making it easy to maintain device independent resolution as windows move between different pixel density displays.

By default when a renderer is created, it will match the window size so window coordinates and render coordinates are 1-1.

Mouse and touch events are no longer filtered to change their coordinates, instead you can call SDL_ConvertEventToRenderCoordinates() to explicitly map event coordinates into the rendering viewport.

SDL_RenderWindowToLogical() and SDL_RenderLogicalToWindow() have been renamed SDL_RenderCoordinatesFromWindow() and SDL_RenderCoordinatesToWindow() and take floating point coordinates in both directions.

The viewport, clipping state, and scale for render targets are now persistent and will remain set whenever they are active.
2023-02-03 12:57:37 -08:00
..
SDL.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_assert.h Fixes for Android builds 2023-01-31 08:39:51 -08:00
SDL_atomic.h SDL_atomic.h: Update SDL_CPUPauseInstruction for Watcom. (#7157) 2023-01-26 17:01:56 +03:00
SDL_audio.h Sync wiki -> headers. 2023-01-25 13:01:40 -05:00
SDL_begin_code.h add version check to SDL_MALLOC macro (for correctness) 2023-02-03 17:40:40 +03:00
SDL_bits.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_blendmode.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_clipboard.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_close_code.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_copying.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_cpuinfo.h Replaced SDL_SIMDAlloc(), SDL_SIMDRealloc(), and SDL_SIMDFree() with SDL_aligned_alloc() and SDL_aligned_free() 2023-01-09 18:01:59 -08:00
SDL_egl.h vita: fix PVR_PSP2 (GLES) + gl4es4fita (GL) 2023-01-25 00:23:05 +01:00
SDL_endian.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_error.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_events.h Add missing _ in SDL_EVENT_LOCALECHANGED and SSDL_EVENT_TEXTEDITING_EXT 2023-02-02 00:49:09 +01:00
SDL_filesystem.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_gamepad.h Sync wiki -> headers. 2023-01-25 13:01:40 -05:00
SDL_guid.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_haptic.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_hidapi.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_hints.h Renderer logical size is now implemented as a render target 2023-02-03 12:57:37 -08:00
SDL_init.h Sync wiki -> headers. 2023-01-25 13:01:40 -05:00
SDL_intrin.h Fixed filename comment in SDL_intrin.h 2023-01-10 21:05:38 -08:00
SDL_joystick.h Sync wiki -> headers. 2023-01-25 13:01:40 -05:00
SDL_keyboard.h Sync wiki -> headers. 2023-01-25 13:01:40 -05:00
SDL_keycode.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_loadso.h SDL_loadso.h: add missing SDLCALL to SDL_LoadFunction() 2023-01-26 18:01:10 +03:00
SDL_locale.h Sync wiki -> headers. 2023-01-25 13:01:40 -05:00
SDL_log.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_main.h Sync SDL3 wiki -> header 2023-01-25 18:02:19 +00:00
SDL_main_impl.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_messagebox.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_metal.h Remove SDL_GL/Metal/Vulkan_GetDrawableSize(). 2023-01-29 11:20:33 -08:00
SDL_misc.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_mouse.h Sync wiki -> headers. 2023-01-25 13:01:40 -05:00
SDL_mutex.h Sync wiki -> headers. 2023-01-25 13:01:40 -05:00
SDL_name.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_oldnames.h Renderer logical size is now implemented as a render target 2023-02-03 12:57:37 -08:00
SDL_opengl.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_opengl_glext.h opengl: make SDL_opengl_glext.h's include compatible with macos 2023-02-03 20:58:05 +01:00
SDL_opengles.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_opengles2.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_opengles2_gl2.h Switch header convention from `#include "SDL.h"` to `#include <SDL3/SDLh>` 2022-11-26 22:15:18 -08:00
SDL_opengles2_gl2ext.h Switch header convention from `#include "SDL.h"` to `#include <SDL3/SDLh>` 2022-11-26 22:15:18 -08:00
SDL_opengles2_gl2platform.h Switch header convention from `#include "SDL.h"` to `#include <SDL3/SDLh>` 2022-11-26 22:15:18 -08:00
SDL_opengles2_khrplatform.h Switch header convention from `#include "SDL.h"` to `#include <SDL3/SDLh>` 2022-11-26 22:15:18 -08:00
SDL_pixels.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_platform.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_platform_defines.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_power.h Sync wiki -> headers. 2023-01-25 13:01:40 -05:00
SDL_quit.h Renamed SDL events for clarity 2023-01-24 07:26:48 -08:00
SDL_rect.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_render.h Renderer logical size is now implemented as a render target 2023-02-03 12:57:37 -08:00
SDL_revision.h Removed SDL_REVISION_NUMBER 2023-01-06 09:53:18 -08:00
SDL_rwops.h Sync wiki -> headers. 2023-01-25 13:01:40 -05:00
SDL_scancode.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_sensor.h Sync wiki -> headers. 2023-01-25 13:01:40 -05:00
SDL_shape.h Folded SDL_WINDOW_FULLSCREEN_EXCLUSIVE and SDL_WINDOW_FULLSCREEN_DESKTOP into a single SDL_WINDOW_FULLSCREEN flag 2023-02-01 12:05:25 -08:00
SDL_stdinc.h Sync wiki -> headers. 2023-01-25 13:01:40 -05:00
SDL_surface.h Sync wiki -> headers. 2023-01-25 13:01:40 -05:00
SDL_system.h Displays are now referenced by instance ID instead of index 2023-01-29 19:25:15 -08:00
SDL_syswm.h Renamed SDL events for clarity 2023-01-24 07:26:48 -08:00
SDL_test.h Moved testautomation data out of SDL_test library 2023-01-26 10:25:44 -08:00
SDL_test_assert.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_test_common.h Renderer logical size is now implemented as a render target 2023-02-03 12:57:37 -08:00
SDL_test_compare.h Moved testautomation data out of SDL_test library 2023-01-26 10:25:44 -08:00
SDL_test_crc32.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_test_font.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_test_fuzzer.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_test_harness.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_test_log.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_test_md5.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_test_memory.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_test_random.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_thread.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_timer.h Fixed building with Visual Studio 2010 2023-01-09 18:30:23 -08:00
SDL_touch.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_version.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_video.h Renderer logical size is now implemented as a render target 2023-02-03 12:57:37 -08:00
SDL_vulkan.h Remove SDL_GL/Metal/Vulkan_GetDrawableSize(). 2023-01-29 11:20:33 -08:00