Skip to content
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

DrawTextureParams type is used directly #845

Open
juliohq opened this issue Oct 16, 2024 · 1 comment
Open

DrawTextureParams type is used directly #845

juliohq opened this issue Oct 16, 2024 · 1 comment

Comments

@juliohq
Copy link
Contributor

juliohq commented Oct 16, 2024

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
Copy link
Contributor

cyrgani commented Oct 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants