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)?
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.
DrawTextureParams
is aClone
type used indraw_texture_ex
to specify how a particular texture should be drawn. The function takesDrawTextureParams
directly though. Wouldn't it be more efficient/performant/flexible to take it by reference (i.e.&DrawTextureParams
)?