Skip to content

Update to SDL3 #350

Closed
Closed

Description

@17cupsofcoffee

Summary

SDL3 is fully released now, and is largely backwards compatible (barring various function name changes) - so I think it's probably worth updating Tetra to use it at some point.

The only tricky thing with this could be that we'd have to switch to https://github.com/vhspace/sdl3-rs instead of sdl2-rs.

Motivation/Examples

No response

Alternatives Considered

No response

Activity

  1. added
    Type: Feature RequestImprovements that could be made to the code/documentation.
    Help WantedIssues that the maintainers would like help with resolving
    Area: PlatformIssues relating to the platform layer
    on May 15, 2025
  2. 17cupsofcoffee commented on May 17, 2025

    @17cupsofcoffee
    OwnerAuthor

    Possibly not as simple as I thought, as sdl3-rs isn't just a straightforward fork (they've changed quite a lot around error handling, etc). Part of me is tempted to do what I did in nova and just use the sdl3-sys library instead, though that would be a lot of unsafe to write to keep feature parity.

    As a short-term solution, I probably should update the docs to point at github.com/libsdl-org/sdl2-compat, since that will let people continue to use the latest SDL with Tetra!

  3. 17cupsofcoffee commented on May 17, 2025

    @17cupsofcoffee
    OwnerAuthor

    Never mind, it wasn't actually as hard as it seemed: #351

  4. 17cupsofcoffee commented on Sep 17, 2025

    @17cupsofcoffee
    OwnerAuthor

    This is now merged. Planning on releasing as soon as I've taken care of a few other minor issues that have stacked up since 0.8.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: PlatformIssues relating to the platform layerHelp WantedIssues that the maintainers would like help with resolvingType: Dependency UpdatePull requests that update a dependency fileType: Feature RequestImprovements that could be made to the code/documentation.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions