forked from icaven/glm
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace GLM_FORCE_QUAT_CTOR_XYZW to GLM_FORCE_QUAT_DATA_XYZW
- Loading branch information
1 parent
38edba1
commit dcb8496
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dcb8496
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing but this new macro name is quite confusing, the CTOR was less confusing. See:
https://twitter.com/MittringMartin/status/1756041311952806261
dcb8496
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is actually not a new name but the old name being used everywhere... including where the data is defined. A previous contribution added GLM_FORCE_QUAT_CTOR_XYZW I think to split the contructor order from the underlying data order but people reported issues so that contribution was made.
Well, I agree there is annoying legacy here... :/
dcb8496
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where the data is defined a different but similar name is used,
GLM_FORCE_QUAT_DATA_XYZW vs GLM_FORCE_QUAT_DATA_WXYZ
I've seen the GLM_FORCE_QUAT_CTOR_XYZW split and removing that seems ok. But the data order is in memory only and quite independent.
With the new name I would expect to be able to customize the data order in more than 2 ways and that is not how the define is used.