Skip to content

Support SDL 3? #126

@Quipyowert2

Description

@Quipyowert2

We should make the game work with SDL 3.2, which was released last month. This involves changing most of the SDL 2 function calls to their new SDL 3 names, and most functions that return -1 on error now return 0 on failure.

I don't think we should drop SDL 2 support anytime soon, especially since Ubuntu doesn't have SDL 3 yet. I searched /usr/include/SDL3/SDL.h on pkgs.org and ubuntu is not on the list of distros that have SDL 3 already, but it's only been two weeks since the release of v3.

Is there a way to make the code work with both SDL 2 and 3 without having #ifdefs everywhere?

P.S, SDL_RenderGeometry function looks cool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions