Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi renderer backend support for Brux #69

Open
tulpenkiste opened this issue May 8, 2024 · 3 comments
Open

Multi renderer backend support for Brux #69

tulpenkiste opened this issue May 8, 2024 · 3 comments

Comments

@tulpenkiste
Copy link
Contributor

tulpenkiste commented May 8, 2024

This issue simply exists so I can remember to work on this for brux in the near future.

Renderers on initial completion should probably be:

  • SDL2 + SDL2_gfx
  • SDL3 + SDL GPU (allows for shaders) (the base SDL3 backend needs to be backwards compatible with SDL2, SDL GPU cannot as thats a new feature to SDL3)

I will probably split this into 2 PRs (first being initial work on making multiple renderers possible, second being SDL3 due to the lack of SDL2_GFX (and also I have to wait for SDL GPU to be merged)) and this will be started after #66 is completed and merged into unstable.

@tulpenkiste
Copy link
Contributor Author

One thing I will probably add when I do this is a function named like rendererSupportsShaders that returns a boolean so games can implement fallbacks for SDL2 (or just crash outright if they're needed for something that would be too slow without it (e.g. 3D))

@hexaheximal
Copy link
Contributor

hexaheximal commented May 8, 2024 via email

@tulpenkiste
Copy link
Contributor Author

tulpenkiste commented May 17, 2024

Due to the recent merging of SimpleSquirrel support, I'll be taking a crack at this later :3

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

No branches or pull requests

2 participants