Skip to content

Move {ttf, image, mixer, gfx}::ffi into sdl2_sys and make them public #647

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

Closed
Cobrand opened this issue Apr 24, 2017 · 0 comments
Closed
Milestone

Comments

@Cobrand
Copy link
Member

Cobrand commented Apr 24, 2017

Basically ffi coming from the modules is currently terrible. If you want to use the C primitives of SDL_mixer for instance, for now you just can't because they aren't exported. First, they should be made public so if someone needs them they can use them, and second, they should be moved in sdl2-sys like every other C binding function.

@Cobrand Cobrand added this to the 0.32 milestone Jul 5, 2017
jonemil added a commit to jonemil/rust-sdl2 that referenced this issue Apr 2, 2018
The 'mixer' feature is re-exported so compiling without it will leave
out the mixer function definitions in sdl2-sys crate as well.
Progresses on Rust-SDL2#647
jonemil added a commit to jonemil/rust-sdl2 that referenced this issue Apr 2, 2018
jonemil added a commit to jonemil/rust-sdl2 that referenced this issue Apr 2, 2018
jonemil added a commit to jonemil/rust-sdl2 that referenced this issue Apr 2, 2018
jonemil added a commit to jonemil/rust-sdl2 that referenced this issue Apr 2, 2018
jonemil added a commit to jonemil/rust-sdl2 that referenced this issue Apr 2, 2018
I'm not sure if this is the intended way of using bindgen, but the
SDL_image bindings now piggy-back on the core SDL bindings by
blacklisting some types that gets dragged into the image module.
The solution probably does not scale, but it might be preferable to have
autoupdateable bindings rather than having to do it manually.

Progresses on Rust-SDL2#647
jonemil added a commit to jonemil/rust-sdl2 that referenced this issue Apr 2, 2018
 Had to change some mutability of some raw pointers used, but the ttf
 demo seem to work.

 Progresses on Rust-SDL2#647
jonemil added a commit to jonemil/rust-sdl2 that referenced this issue Apr 2, 2018
@Cobrand Cobrand closed this as completed in 0aab5ef Jul 8, 2018
sypwex pushed a commit to sypwex/rust-sdl2 that referenced this issue Jun 2, 2024
The 'mixer' feature is re-exported so compiling without it will leave
out the mixer function definitions in sdl2-sys crate as well.
Progresses on Rust-SDL2#647
sypwex pushed a commit to sypwex/rust-sdl2 that referenced this issue Jun 2, 2024
sypwex pushed a commit to sypwex/rust-sdl2 that referenced this issue Jun 2, 2024
sypwex pushed a commit to sypwex/rust-sdl2 that referenced this issue Jun 2, 2024
sypwex pushed a commit to sypwex/rust-sdl2 that referenced this issue Jun 2, 2024
sypwex pushed a commit to sypwex/rust-sdl2 that referenced this issue Jun 2, 2024
I'm not sure if this is the intended way of using bindgen, but the
SDL_image bindings now piggy-back on the core SDL bindings by
blacklisting some types that gets dragged into the image module.
The solution probably does not scale, but it might be preferable to have
autoupdateable bindings rather than having to do it manually.

Progresses on Rust-SDL2#647
sypwex pushed a commit to sypwex/rust-sdl2 that referenced this issue Jun 2, 2024
 Had to change some mutability of some raw pointers used, but the ttf
 demo seem to work.

 Progresses on Rust-SDL2#647
sypwex pushed a commit to sypwex/rust-sdl2 that referenced this issue Jun 2, 2024
sypwex pushed a commit to sypwex/rust-sdl2 that referenced this issue Jun 2, 2024
Renamed the binding files to be consistent.
The build script could probably benefit from a good cleanup.
Closes Rust-SDL2#647
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant