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

Citro2D support for 2D applications? #44

Open
honkling opened this issue Jan 31, 2024 · 2 comments
Open

Citro2D support for 2D applications? #44

honkling opened this issue Jan 31, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@honkling
Copy link

Is support for Citro2D on the checklist? I would quite like to use Rust3DS for my homebrew applications, but it doesn't appear to support C2D unfortunately :/

@adryzz
Copy link

adryzz commented Feb 1, 2024

there is a C3D/C2D bindings repo, but it's very much a wip, so the safe abstractions mostly aren't there, and those that exist aren't nearly as polished as the libctru ones.

@ian-h-chamberlain ian-h-chamberlain transferred this issue from rust3ds/ctru-rs Feb 4, 2024
@ian-h-chamberlain
Copy link
Member

I went ahead and transferred this issue, since C2D support would most likely be implemented here in citro3d-rs. Maybe we'd have a separate crate for citro2d and citro2d-sys but since a lot of the foundation is built off citro3d I think we'd probably need to flesh out the API of citro3d-rs a bit more before we can come up with something sensible.

In the meantime, if you want to use the existing devkitPro citro2d, you can probably use bindgen yourself in a similar manner to what we do for citro3d-sys: https://github.com/rust3ds/citro3d-rs/blob/main/citro3d-sys/build.rs . I imagine with some tweaking of the include headers you could generate appropriate citro2d bindings and use those, but it will of course require a lot of unsafe and might not interoperate too nicely with this library.

Still, I do think this is a useful goal for this library to have so let's keep this issue around to track it!

@ian-h-chamberlain ian-h-chamberlain added the enhancement New feature or request label Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants