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

jme3-core: add a CenterQuad class based on the one in jme3-vr #1704

Merged
merged 2 commits into from Dec 15, 2021

Conversation

stephengold
Copy link
Member

The CenterQuad class in jme3-vr seems to have some general utility, for instance for UI objects that will be rotated and/or scaled. This PR cleans it up and adds it to the jme3-core. Long-term, we may want to deprecate the version in jme3-vr.

Notable changes relative to jme3-vr:

  • no static instances
  • privatized the updateGeometry() methods
  • added a no-arg constructor and read/write methods to allow serialization
  • solved a winding-order bug when width is negative
  • avoided invocation of overridable methods in constructors
  • improved javadoc

@stephengold
Copy link
Member Author

This PR is ready for review.

@stephengold
Copy link
Member Author

Regarding the lack of a no-arg constructor in the jme3-vr version, see issue #1705.

@stephengold
Copy link
Member Author

Unless there's more to discuss, I'd like to integrate this PR in about 24 hours.

@stephengold stephengold merged commit d16e0d9 into master Dec 15, 2021
@stephengold stephengold deleted the sgold/center-quad-take2 branch December 15, 2021 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants