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

Missing Bindings: citro3d/tex3ds.h #6

Closed
hYdos opened this issue Nov 18, 2022 · 2 comments
Closed

Missing Bindings: citro3d/tex3ds.h #6

hYdos opened this issue Nov 18, 2022 · 2 comments

Comments

@hYdos
Copy link

hYdos commented Nov 18, 2022

Without these bindings, It is currently impossible to use textures within a rust environment

EDIT: this may technically come under another repo, But its a essential feature

@ian-h-chamberlain
Copy link
Member

ian-h-chamberlain commented Nov 18, 2022

Ah, this is probably just an oversight from the early days of this repo since citro3d.h does not automatically include tex3ds.h (but does automatically include pretty much everything else in c3d/).

There are a few options that would probably resolve it easily:

  • Create a bindings.h or something that includes both citro3d.h and tex3ds.h, and run bindgen on that
  • Explicitly run bindgen against both citro3d.h and tex3ds.h and put the output from tex3ds.h in a mod tex3ds or something
  • Actually just run bindgen on tex3ds.h itself (instead of citro3d.h), since it apparently includes citro3d.h already

I don't think it makes sense to split out to a separate repo since there are just a handful of types and functions in there. Some of them look to be static inline and so probably will need to be ported by hand as well for full parity with the C header.

@ian-h-chamberlain
Copy link
Member

This should be completely resolved as of #26 since bindings are now generated on the fly, including static inline functions and tex3ds.h.

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