not-fl3 / macroquad

Cross-platform game engine in Rust.
Apache License 2.0
3.37k stars 324 forks source link

`DrawTextureParams` type is used directly #845

Open juliohq opened 4 weeks ago

juliohq commented 4 weeks ago

DrawTextureParams is a Clone type used in draw_texture_ex to specify how a particular texture should be drawn. The function takes DrawTextureParams directly though. Wouldn't it be more efficient/performant/flexible to take it by reference (i.e. &DrawTextureParams)?

cyrgani commented 4 weeks ago

It would, but we cannot change that until a future release of macroquad 0.5, since it would currently break all usages of this function. Some more explanation can be found in #738.