Results 102 comments of crumblingstatue

I'm not sure how to solve this in an easy way. If we didn't require that the texture outlives the shader, the user could drop the texture before the shader...

One idea I have is allowing ownership of the texture by Shader. Maybe have a method for temporarily borrowing it mutably if it needs to be modified. Moving the Shader...

We could potentially have an unsafe method that accepts a raw pointer to a Texture and offloads the responsibility of ensuring soundness to the user, until we come up with...

I would really like to wait for at least `associated_consts` and `pub_restricted` in Rust to stabilize before making the commitment. `pub_restricted` will most likely be stable in Rust 1.18. I'm...

`associated_consts` will be stable in 1.20. I'm setting 1.20 as a target for stabilization.

Hmm... Might want to wait until [extern types](https://github.com/rust-lang/rust/issues/43467) are stable, as using empty enums for the various `Ref` types might be unsound.

[`#[repr(transparent)]`](https://github.com/rust-lang/rust/issues/43036) could also be used to wrap the bindgen generated types instead of declaring separate extern types. EDIT: `repr(transparent)` requires non-zero sized types, and bindgen generates a zero-sized type. I...

You could start by listing here types that you feel need examples. I'll review the cases and might even make examples for them.

I don't have access to MSVC compiler, but if anyone is curious about testing the [vendored-sfml](https://github.com/jeremyletang/rust-sfml/tree/vendored-sfml) branch with it, I would appreciate some reports. This branch should allow linking everything...

Looks like is_pressed isn't the only misbehaving API. There can be threading related errors for example if you create 2 sf::RenderWindows on 2 different threads. And there is probably more....