Anonymous Maarten
b9ad5fc589
ci: build tvOs/iOs CMake project
2024-08-12 06:44:35 +02:00
Anonymous Maarten
8a5d1fc196
cmake: add swift test
2024-07-27 08:39:55 +02:00
Anonymous Maarten
2d1d3d9fb2
cmake: fix building UWP with non-MSVC generator
2024-07-19 10:21:34 +00:00
Sam Lantinga
2ba76dbe80
Simplified SDL_Surface
...
SDL_Surface has been simplified and internal details are no longer in the public structure.
The `format` member of SDL_Surface is now an enumerated pixel format value. You can get the full details of the pixel format by calling `SDL_GetPixelFormatDetails(surface->format)`. You can get the palette associated with the surface by calling SDL_GetSurfacePalette(). You can get the clip rectangle by calling SDL_GetSurfaceClipRect().
SDL_PixelFormat has been renamed SDL_PixelFormatDetails and just describes the pixel format, it does not include a palette for indexed pixel types.
SDL_PixelFormatEnum has been renamed SDL_PixelFormat and is used instead of Uint32 for API functions that refer to pixel format by enumerated value.
SDL_MapRGB(), SDL_MapRGBA(), SDL_GetRGB(), and SDL_GetRGBA() take an optional palette parameter for indexed color lookups.
2024-07-10 00:48:18 -07:00
Anonymous Maarten
dd0bb25f66
cmake: remove SDL_STATIC_PIC cmake option.
...
Use CMAKE_POSITION_INDEPENDENT_CODE instead
2024-06-10 18:04:18 +02:00
Anonymous Maarten
86b2f441c0
release: create arm64 Visual Studio binaries
...
[skip ci]
2024-05-23 00:13:10 +02:00
Anonymous Maarten
e10207e831
cmake: disallow '#include "SDL.h"'
2024-05-22 20:17:13 +02:00
Anonymous Maarten
75a71bde4b
cmake: build tests against installed SDL prefix
2024-03-23 21:41:20 +01:00
Sam Lantinga
c540c77756
Removed SDL_INIT_EVERYTHING
...
Fixes https://github.com/libsdl-org/SDL/issues/8709
2024-01-18 06:17:58 -08:00
Anonymous Maarten
a45b371de0
cmake: create and install SDL3::Jar target for Android
2023-11-23 02:13:08 +01:00
Sylvain
d8600f717e
Pointer as bool (libsdl-org#7214)
2023-11-09 14:18:36 -08:00
Anonymous Maarten
a5d9db0cd0
cmake: build tests for UWP
2023-08-12 17:37:52 +02:00
Anonymous Maarten
b6ae281e97
Use #ifdef/#ifndef instead of #if defined/#if \!defined
2023-03-30 21:35:01 +00:00
Sam Lantinga
698dbd8464
SDL_CreateWindow() has been simplified and no longer takes a window position.
2023-03-06 09:50:12 -08:00
Anonymous Maarten
dc138ee3d4
cmake: SDL3-shared target will always be a shared target
2023-02-17 23:42:03 +01:00
Anonymous Maarten
0a3d038ff7
cmake: fix installed SDL3::SDL3_test + test on ci
2023-01-31 05:29:38 +01:00
Anonymous Maarten
23c2c15a70
cmake: capitalize SDL3::Headers target
2023-01-31 01:59:21 +01:00
Anonymous Maarten
93c25e650c
cmake: create SDL3::headers for include path + no exported CMake variables
2023-01-31 01:59:21 +01:00
Anonymous Maarten
5690dfb65b
cmake: don't install Android.mk files for Android
2023-01-31 01:59:21 +01:00
Anonymous Maarten
0a1479d58c
cmake: fix sdl3.pc for Nintendo 3DS + add to test matrix
2023-01-15 17:46:36 +01:00
Sylvain
aa46ff8f4b
Remove SDL_WINDOW_SHOW flag, as redundant with SDL_WINDOW_HIDDEN
2022-12-28 12:16:57 -08:00
Sylvain
ab0c5cf07d
Fix compilation
2022-12-27 17:25:31 +01:00
Daniel Gibson
c3bf253b09
Remove SDL3_main from build systems, remove most of src/main/*
...
XCode is still missing, and src/main/winrt/SDL3-WinRTResource*
still need to find a new home
2022-12-15 08:01:01 -08:00
Daniel Gibson
22e22ba196
Add SDL_main.h includes to tests
...
.. including cmake/test/*.c, whatever that does
(this is needed now because SDL.h doesn't include SDL_main.h anymore)
2022-12-15 08:01:01 -08:00
Sam Lantinga
c2432f8d0d
Rename SDLmain to SDL_main and SDLtest to SDL_test for consistency with other SDL libraries
2022-11-28 10:57:59 -08:00
Anonymous Maarten
9f2ca87504
build: don't add SDL3 subfolder to include path for external projects
2022-11-27 14:33:13 -08:00
Sam Lantinga
2af4f74e1c
Remove sdl3.m4 and sdl3-config, and document pkg-config as the recommended replacement
...
Fixes https://github.com/libsdl-org/SDL/issues/6639
2022-11-27 14:11:06 -08:00
Sam Lantinga
a635a485bc
Re-added WinRT support until we're sure that it's no longer being used
2022-11-23 10:41:43 -08:00
Ozkan Sezer
dc2a3e06e9
removed WinRT support.
2022-11-22 23:36:24 +03:00
Sam Lantinga
2c4159b99a
First pass at changing SDL 2.0 to SDL 3.0
2022-11-21 20:28:58 -08:00
Hubert Maier
5dc93451d2
JANITORIAL : Correct some more spelling mistakes ( #6489 )
2022-11-06 11:49:37 -08:00
Anonymous Maarten
3b20e0ecef
cmake: only add -Wl,--undefined=WinMain when building an executable
2022-09-19 05:00:24 +03:00
Cameron Cawley
6e9a606a8e
Add more mingw-w64 build workflows
2022-07-30 14:37:41 -07:00
Anonymous Maarten
430c39082f
ci: test 'sdl2-config --static-libs' + 'pkg-config sdl2 --static' on ci
2022-07-26 14:24:36 -07:00
Anonymous Maarten
78a3751659
cmake+ci: fix+test sdl2-config + sdl2.pc for all supported platforms
2022-06-23 14:17:38 +02:00
Anonymous Maarten
86f50ae7d7
ci: Test cmake build script on Android
...
android
2022-06-15 11:11:49 -07:00
Anonymous Maarten
9ff8f29f43
cmake: Add mini-SDL2 CMake project to test SDL2 prefixes
2022-06-03 12:41:36 -07:00