Skip to content

Comments

SDL3 Renderer support#223

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

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

Conversation

@Ecialo
Copy link

@Ecialo Ecialo commented Nov 18, 2025

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
Copy link
Author

Ecialo commented Dec 5, 2025

The namespace problem will be resolved after merging this

@Ecialo
Copy link
Author

Ecialo commented Jan 13, 2026

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

@Ecialo
Copy link
Author

Ecialo commented Jan 13, 2026

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

@Ecialo
Copy link
Author

Ecialo commented Jan 13, 2026

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
Copy link
Author

Ecialo commented Feb 2, 2026

The sdl3 flag now disabled by default

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.

1 participant