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

Add tint color variants for all image functions #66

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pkhead
Copy link

@pkhead pkhead commented Jun 4, 2024

This is a port of the code I wrote for the pull request for the C# version which, along with a C#-specific bug fix, adds tint color variants for all image functions.

However, there is a difference between the two versions. Since the C++ version cannot use operator overloading for the rlImGui functions (due to C externs), I created new functions with the suffix "Tint" added to them, as well as a function for image and image button drawing that has the suffix "Pro" that has position, source rect, and tint color parameters. I added the "Pro" functions because I also added a function for drawing ImageButtons with a defined source rectangle, as I did with the C# version.

But I'm not sure if I should port these new function names to C#, since I only did it because the C++ code could not use operator overloading. I would prefer keeping the C# names the same, since I find function overloading more convenient, but that would mean that the C++ and C# interfaces are different.

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

Successfully merging this pull request may close these issues.

1 participant