Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 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
0844edb
Merge branch 'master' into kja_sdl3
kanthoney May 13, 2026
2b21d92
Use correct SDL3 build flags
mcarans May 17, 2026
7f11302
-lstdc++ isn't needed either
mcarans May 17, 2026
d590738
objcflags does not take cflags actually
mcarans May 17, 2026
b19fcc3
Remove sdl-config from Windows build
kanthoney May 17, 2026
fd9bf15
Merge branch 'master' into kja_sdl3
kanthoney May 17, 2026
3307f94
Fix failure to find path environment variable under Windows
kanthoney May 17, 2026
ae3917f
Simplify Linux build flags
mcarans May 17, 2026
df74b6b
Use 26.04 container for now
mcarans May 17, 2026
f6bbbf4
Use 26.04 container for now
mcarans May 17, 2026
395664f
Check if escalation needed
mcarans May 17, 2026
71696df
Ubuntu container needs curl
mcarans May 18, 2026
9634ea1
Output test errors on Linux
mcarans May 18, 2026
2dffaed
Add missing Ubuntu driver
mcarans May 18, 2026
03c4b72
Add missing Ubuntu driver
mcarans May 18, 2026
b02eebc
Add missing Ubuntu driver
mcarans May 18, 2026
905f7e6
See if xwayland is missing
mcarans May 18, 2026
9ddcdef
Add some test steps
mcarans May 18, 2026
26ec3f9
Fix Windows issue with log files, snapshots etc being saved to wrong …
kanthoney May 18, 2026
7a8662b
Add xauth
mcarans May 19, 2026
0872aba
Add x11-xserver-utils
mcarans May 19, 2026
b917678
Add XWAYLAND_NO_WM = "1"
mcarans May 19, 2026
0ae9fc7
Add verbosity
mcarans May 19, 2026
da52125
Add verbosity
mcarans May 19, 2026
ebaec5a
Add verbosity
mcarans May 19, 2026
931f634
Add verbosity
mcarans May 19, 2026
b88a434
Add verbosity
mcarans May 19, 2026
7af813b
Add xcursor-themes
mcarans May 19, 2026
ef8e813
Change weston logging
mcarans May 19, 2026
2a99106
Change weston logging
mcarans May 19, 2026
163f1e6
Change weston logging and add x server logging
mcarans May 19, 2026
66bf596
Escaping
mcarans May 19, 2026
c55a9ae
Merge branch 'master' into kja_sdl3
kanthoney May 19, 2026
0e43956
Better logging of test
mcarans May 19, 2026
e11ae72
Add xwayland
mcarans May 19, 2026
d409122
Add universe repo
mcarans May 20, 2026
a260327
Use offscreen render
mcarans May 21, 2026
cdd4b17
Fix Windows
mcarans May 21, 2026
a5dcefa
Add angleproject to Windows
mcarans May 21, 2026
9f8f0a8
Remove xwfb stuff
mcarans May 21, 2026
8eb1177
Merge branch 'OoliteProject:kja_sdl3' into kja_sdl3
mcarans May 21, 2026
b262c99
Fix flatpak
mcarans May 22, 2026
48d30ae
Fix flatpak
mcarans May 22, 2026
b76dde7
Fix flatpak
mcarans May 22, 2026
142d3ca
Add glu
mcarans May 22, 2026
2da9606
Build SDL3 in flatpak
mcarans May 23, 2026
4fc6341
Fix merge conflict - add full version number to window title
kanthoney May 23, 2026
e1d0703
Merge remote-tracking branch 'mcarans/kja_sdl3' into kja_sdl3
kanthoney May 23, 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
14 changes: 11 additions & 3 deletions .github/workflows/test_builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,24 @@ concurrency:
jobs:
ubuntu:
runs-on: ubuntu-latest
container:
image: ubuntu:26.04
steps:
- name: Update Ubuntu
run: |
sudo apt-get update
sudo apt-get install -y git
apt update
apt install -y git curl ca-certificates
- name: Pre-setup ownership
run: |
# This must run before the checkout action if the action tries to do git commands
mkdir -p "$GITHUB_WORKSPACE"
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install packages
run: |
sudo ShellScripts/Linux/install_packages_root.sh
ShellScripts/Linux/install_packages_root.sh
- name: Build GNUstep
run: |
ShellScripts/Linux/build_gnustep.sh system
Expand All @@ -39,6 +46,7 @@ jobs:
- name: Build AppImage
run: |
ShellScripts/common/build_oolite.sh pkg-appimage-snapshot

fedora:
runs-on: ubuntu-latest
container:
Expand Down
16 changes: 5 additions & 11 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ 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_CFLAGS += -DWIN32 -DNEED_STRLCPY `sdl-config --cflags` -mtune=generic -DWINVER=0x0A00 -D_WIN32_WINNT=0x0A00 -DNTDDI_VERSION=0x0A00000F
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 -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
ADDITIONAL_OBJCFLAGS += -DLOADSAVEGUI -DWIN32 -DXP_WIN -Wno-import -std=gnu99 -mtune=generic -DWINVER=0x0A00 -D_WIN32_WINNT=0x0A00 -DNTDDI_VERSION=0x0A00000F
# oolite_LIB_DIRS += -L$(GNUSTEP_LOCAL_ROOT)/lib -L$(WIN_DEPS_DIR)/lib -L$(JS_LIB_DIR)

ifeq ($(ESPEAK),yes)
Expand Down Expand Up @@ -90,13 +90,11 @@ else

ADDITIONAL_CFLAGS += -ggdb3
ADDITIONAL_OBJCFLAGS += -ggdb3
ADDITIONAL_CCFLAGS += -ggdb3
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_OBJCFLAGS += -DLINUX -DXP_UNIX `sdl-config --cflags`
ADDITIONAL_CFLAGS += -DLINUX `sdl-config --cflags`
ADDITIONAL_OBJC_LIBS += -lGLU -lGL -lX11 -lgnustep-base -lopenal -lz -lvorbisfile -lpng -lnspr4 -lSDL3 -l$(LIBJS)
ADDITIONAL_OBJCFLAGS += -DLINUX -DXP_UNIX
ADDITIONAL_LDFLAGS += -Wl,-rpath,'$$ORIGIN'

ifeq ($(ESPEAK),yes)
Expand All @@ -110,8 +108,6 @@ else
endif

ifeq ($(COMPILER_TYPE),gcc)
ADDITIONAL_OBJCFLAGS += -std=gnu99 -Wall -Wno-import `nspr-config --cflags` -DLOADSAVEGUI
ADDITIONAL_CFLAGS += -Wall `nspr-config --cflags` -DNEED_STRLCPY
ADDITIONAL_LDFLAGS += -fuse-ld=bfd
else
ADDITIONAL_LDFLAGS += -fuse-ld=lld
Expand All @@ -126,12 +122,10 @@ ifeq ($(lto),yes)
ifeq ($(COMPILER_TYPE),clang)
ADDITIONAL_CFLAGS += -flto=thin
ADDITIONAL_OBJCFLAGS += -flto=thin
ADDITIONAL_CCFLAGS += -flto=thin
ADDITIONAL_LDFLAGS += -flto=thin -Wl,--thinlto-cache-dir=build/thinlto_cache
else
ADDITIONAL_CFLAGS += -flto=auto
ADDITIONAL_OBJCFLAGS += -flto=auto
ADDITIONAL_CCFLAGS += -flto=auto
ADDITIONAL_LDFLAGS += -flto=auto
endif
endif
Expand Down
Loading