Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
627fdf5
Change from SDL1.2 to SDL3 to the point where the program builds succ…
kanthoney Apr 22, 2026
1a0372c
Fix SDL not finding display modes
kanthoney Apr 22, 2026
e618b05
More SDL3 changes, including changing scan codes for US and UK keyboa…
kanthoney Apr 22, 2026
c3f3187
Set depth buffer size before creating window
kanthoney Apr 22, 2026
2f8b1c0
If window creation fails, try different colour dpeths
kanthoney Apr 22, 2026
31b1a1e
Try and get splash screen to show
kanthoney Apr 23, 2026
778b39a
Clean up some errors and warnings
kanthoney Apr 23, 2026
9c55689
disable splash screen update to allow game to run
kanthoney Apr 23, 2026
106dadb
Get splash screen working so that game doesn't crash on start
kanthoney Apr 23, 2026
4793fdc
Get snapshots working
kanthoney Apr 23, 2026
94fce3d
Resize SDL window on reinitializing GL, create window in initialiseGL…
kanthoney Apr 23, 2026
1ce4197
Fix getNativeSize function in case of window not yet existing
kanthoney Apr 24, 2026
6347a4c
A little bit of tidying up SDL3
kanthoney Apr 24, 2026
f4eddec
Use HDR colourspace in SDL3
kanthoney Apr 24, 2026
73f7b7d
Merge branch 'master' into kja_sdl3
kanthoney Apr 24, 2026
344a723
Get SDL3 build working under Windows
kanthoney Apr 25, 2026
44319aa
Merge branch 'kja_sdl3' of ssh://github.com/OoliteProject/oolite into…
kanthoney Apr 25, 2026
5c33cf8
Readd missing line causing windows to behave weirdly
kanthoney Apr 26, 2026
38b84fe
Move some code from createWindowWithSize back to init where it should be
kanthoney Apr 26, 2026
bcd8fa8
populate fullscreen video modes *after* video subsystem initialization
kanthoney Apr 26, 2026
c464c01
Set US and UK windows keyboard mappings for use with SDL3
kanthoney Apr 26, 2026
5e64eee
Set SDL_GL_FLOATBUFFERS when HDR requested so we get 16 bits per channel
kanthoney Apr 26, 2026
9245f76
Merge branch 'kja_sdl3' of ssh://github.com/OoliteProject/oolite into…
kanthoney Apr 26, 2026
7391c7a
Merge branch 'master' into kja_sdl3
kanthoney Apr 26, 2026
f0b2eaf
Fix game controls screen not finding correct full screen mode
kanthoney Apr 26, 2026
25eabc0
Comment out keymappings code to see if we actually need it under SDL3
kanthoney Apr 27, 2026
3ff97b0
Fix weird characters appearing when shift/ctrl button pressed during …
kanthoney Apr 27, 2026
689fd49
Use SDL_GetKeyFromScancode to get key code
kanthoney Apr 27, 2026
880f4cd
Use SDL_WINDOW_HIGH_PIXEL_DENSITY flag to get full resolution on Wayland
kanthoney Apr 27, 2026
e373921
SDL_WINDOW_HIGH_PIXEL_DENSITY flag causes crash in windowed mode, so …
kanthoney Apr 27, 2026
100e372
Fix SDL_WINDOW_HIGH_PIXEL_DENSITY crash and reinstate high res windows
kanthoney Apr 27, 2026
99c420d
fix OpenGL scaling error when using high pixel density in windowed mode
kanthoney Apr 27, 2026
a50c728
Fix issue with splash screen image not showing on Linux when using NV…
kanthoney Apr 27, 2026
d143a3e
Fix mouse cursor positioning and map scissoring when using high densi…
kanthoney Apr 28, 2026
0788cbb
Update dependencies to install SDL3 instead of SDL1.2
kanthoney Apr 28, 2026
262a89c
Fix windows install_deps.sh script to install SDL3 package
kanthoney Apr 28, 2026
39edcbf
Apply gamma setting via oolite-final.fragment shader
kanthoney Apr 28, 2026
661d92f
Restore gamma correction code to fixed gamma of 2.2 in oolite-final.f…
kanthoney Apr 28, 2026
a17cfa7
Fix problem with keystroke for docking permission not working
kanthoney Apr 28, 2026
b06381f
Remove obsolete gamma setting
kanthoney May 1, 2026
50e2953
Move windows-only SDL1.2 window events to SLD3 equivalents
kanthoney May 1, 2026
972d770
AnyLinux universal appimage (#615)
mcarans May 1, 2026
29ed79b
Use SDL3 version of SDL_opengl.h
kanthoney May 4, 2026
ccbbca2
Remove unneeded macro definitions
kanthoney May 4, 2026
0ff4d65
Merge branch 'master' into kja_sdl3
kanthoney May 4, 2026
e215cdd
Merge branch 'master' into kja_sdl3
kanthoney May 6, 2026
b6c4ec3
Get joysticks and gamepads working under SDL3
kanthoney May 6, 2026
4b95c12
Stop window from centering
kanthoney May 8, 2026
52001f5
Correctly add transparency to window icon and remove some old SDL1.2 …
kanthoney May 9, 2026
6518492
Fix compiler warnings
kanthoney May 9, 2026
57d729e
Fix mousewheel
kanthoney May 9, 2026
b4fd660
Remove unnecessary code
kanthoney May 9, 2026
1f373d7
Remove -lSDLmain link flag which is no longer needed
kanthoney May 10, 2026
21869da
Merge branch 'master' into kja_sdl3
kanthoney May 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ ifeq ($(GNUSTEP_HOST_OS),mingw32)
LIBPNG_LIBRARY_NAME = png

ADDITIONAL_INCLUDE_DIRS += -Isrc/SDL -Isrc/Core -Isrc/BSDCompat -Isrc/Core/Scripting -Isrc/Core/Materials -Isrc/Core/Entities -Isrc/Core/OXPVerifier -Isrc/Core/Debug -Isrc/Core/Tables -Isrc/Core/MiniZip -Isrc/SDL/EXRSnapshotSupport
ADDITIONAL_OBJC_LIBS += -lglu32 -lopengl32 -l$(OPENAL_LIBRARY_NAME).dll -l$(LIBPNG_LIBRARY_NAME).dll -lmingw32 -lSDLmain -lSDL -lvorbisfile.dll -lvorbis.dll -lz -lgnustep-base -l$(JS_IMPORT_LIBRARY) -lnspr4 -lshlwapi -ldwmapi -lwinmm -mwindows
ADDITIONAL_OBJC_LIBS += -lglu32 -lopengl32 -l$(OPENAL_LIBRARY_NAME).dll -l$(LIBPNG_LIBRARY_NAME).dll -lmingw32 -lSDL3 -lvorbisfile.dll -lvorbis.dll -lz -lgnustep-base -l$(JS_IMPORT_LIBRARY) -lnspr4 -lshlwapi -ldwmapi -lwinmm -mwindows
ADDITIONAL_CFLAGS += -DWIN32 -DNEED_STRLCPY `sdl-config --cflags` -mtune=generic -DWINVER=0x0A00 -D_WIN32_WINNT=0x0A00 -DNTDDI_VERSION=0x0A00000F
# note the vpath stuff above isn't working for me, so adding src/SDL and src/Core explicitly
ADDITIONAL_OBJCFLAGS += -DLOADSAVEGUI -DWIN32 -DXP_WIN -Wno-import -std=gnu99 `sdl-config --cflags` -mtune=generic -DWINVER=0x0A00 -D_WIN32_WINNT=0x0A00 -DNTDDI_VERSION=0x0A00000F
oolite_LIB_DIRS += -Ldeps/SDL3/x86_64/lib
# oolite_LIB_DIRS += -L$(GNUSTEP_LOCAL_ROOT)/lib -L$(WIN_DEPS_DIR)/lib -L$(JS_LIB_DIR)

ifeq ($(ESPEAK),yes)
Expand Down Expand Up @@ -94,7 +95,7 @@ else
ADDITIONAL_LDFLAGS += -ggdb3

ADDITIONAL_INCLUDE_DIRS += -Isrc/SDL -Isrc/Core -Isrc/BSDCompat -Isrc/Core/Scripting -Isrc/Core/Materials -Isrc/Core/Entities -Isrc/Core/OXPVerifier -Isrc/Core/Debug -Isrc/Core/Tables -Isrc/Core/MiniZip
ADDITIONAL_OBJC_LIBS += -lGLU -lGL -lX11 -lSDL -lgnustep-base -l$(LIBJS) -lopenal -lz -lvorbisfile -lpng `nspr-config --libs` -lstdc++
ADDITIONAL_OBJC_LIBS += -lGLU -lGL -lX11 -lSDL3 -lgnustep-base -l$(LIBJS) -lopenal -lz -lvorbisfile -lpng `nspr-config --libs` -lstdc++
ADDITIONAL_OBJCFLAGS += -DLINUX -DXP_UNIX `sdl-config --cflags`
ADDITIONAL_CFLAGS += -DLINUX `sdl-config --cflags`
ADDITIONAL_LDFLAGS += -Wl,-rpath,'$$ORIGIN'
Expand Down
Loading
Loading