Skip to content

SDL3 Renderer support - #223

Open
Ecialo wants to merge 5 commits into
haskell-game:mainfrom
Ecialo:sdl3
Open

SDL3 Renderer support#223
Ecialo wants to merge 5 commits into
haskell-game:mainfrom
Ecialo:sdl3

Conversation

@Ecialo

@Ecialo Ecialo commented Nov 18, 2025

Copy link
Copy Markdown

I've made integration of sdl3 renderer. For sdl3 i've used the bindings by https://github.com/klukaszek/sdl3-hs
Demo window works with this renderer example.

Screenshot 2025-11-18 at 13 54 56

It's totally not ready for merge, since the sdl3 bindings uses same namespace as sdl2 package. So the some cabal flag gymnastics is needed, which is looking ugly.
I'm totally need your advices how to make this more acceptable.

@Ecialo

Ecialo commented Dec 5, 2025

Copy link
Copy Markdown
Author

The namespace problem will be resolved after merging this

@Ecialo

Ecialo commented Jan 13, 2026

Copy link
Copy Markdown
Author

SDL3 was moved to the separate namespace, so it's good now.

@Ecialo

Ecialo commented Jan 13, 2026

Copy link
Copy Markdown
Author

Or not. Now I have a linking problems on the macos. Trying to solve it

@Ecialo

Ecialo commented Jan 13, 2026

Copy link
Copy Markdown
Author

Yeah. Linking on a mac does not work if sdl2 and sdl3 are installed at the same time and both cabal flags are used. For compatibility, I can turn off sdl3 cabal flag by default and add to the documentation how to enable it. What do you think about this solution?

@Ecialo Ecialo mentioned this pull request Jan 13, 2026
@Ecialo

Ecialo commented Feb 2, 2026

Copy link
Copy Markdown
Author

The sdl3 flag now disabled by default

@dpwiz

dpwiz commented Mar 9, 2026

Copy link
Copy Markdown
Member

The CI builder is fubar for some reason and there's no retry button in sight. Can you amend the commit and force-push it?

@Ecialo

Ecialo commented Apr 2, 2026

Copy link
Copy Markdown
Author

@dpwiz done.

@dpwiz
dpwiz force-pushed the sdl3 branch 3 times, most recently from ecd06ea to 1c5ddbf Compare April 2, 2026 22:58
@dpwiz

dpwiz commented Apr 2, 2026

Copy link
Copy Markdown
Member

Some nix issues...

@Ecialo

Ecialo commented Apr 3, 2026

Copy link
Copy Markdown
Author

Can I help with this somehow?

@dpwiz

dpwiz commented Apr 3, 2026

Copy link
Copy Markdown
Member

Looks like niv should be used to tell nix about the SDL3 being used.
I wasn't able to build this with just Ubuntu libsdl3-dev package (too old, of course).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants