A modular game engine written in Rust.
Questions tagged [rust-piston]
34 questions
-1
votes
1 answer
HashMap edit value and Iter Rust
hi i have a function like that and a HashMap and the probleme is i want to iter and edit the HashMap but i have too much erro with a clone the code compil but the value of the HashMap
struct Piece(HashMap<(i32,i32), Couleur>);
fn press(&mut self,…

Zenmoa
- 31
- 5
-1
votes
2 answers
transformation for texture in Piston
Piston has draw_2d function, and it can accept results from the function image which returns image made from the texture. There is a 'transformation' parameter for image, which most examples just takes from texture.transform. Internally it's a list…

George Shuklin
- 6,952
- 10
- 39
- 80
-2
votes
1 answer
Rust - image crate: issue saving image buffer
I have a question related to the fractal example (section '6.2 Generating Fractals', https://github.com/PistonDevelopers/image) in examples supplied for image crate
1) At line
image::ImageLuma8(imgbuf).save(fout, image::PNG).unwrap();
I get the…

TC29
- 1
- 2