-
Notifications
You must be signed in to change notification settings - Fork 8
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
Lack of temporary object type functions #12
Comments
Also please add this struct to the union vec2s: Edit: Also do similar for any related unions please |
This is two issues in one. I'll address issue 1 in this issue and issue 2 in #13 |
I like this idea. (Having both types of functions) I will think about it. Great suggestion! |
as a side note, my suggestion of double underscore makes it easy for devs to do a quick session replace of all their calls to the double underscore when upgrading, then it's only a matter of choosing what should use the more readable function calls or the faster core calls |
Here's some code I've been converting, I had hoped to find functions suitable for this sort of code but it does not seem to be available, at the moment I'm gonna have to write wrappers to achieve the below without compile time errors:
I believe it is better to rename the current functions adding an extra underscore after the prefix and then add the versions using temporary vectors/matrices using the now free'd up names, for example vector3_normalize() would become something like the below:
The double underscore makes clear that the single underscore version uses the double underscore internally, this allows both the option of speed and the option of preservation to the developer.
The text was updated successfully, but these errors were encountered: