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

refactor(OpenGL/Texture): use named parameters #3224

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

Conversation

floryst
Copy link
Collaborator

@floryst floryst commented Feb 25, 2025

Context

The create* methods have enough parameters to warrant using named parameters.

Closes #3222

Results

  • vtkOpenGLTexture create* methods now use named parameters

Changes

  • Documentation and TypeScript definitions were updated to match those changes

PR and Code Checklist

  • semantic-release commit messages
  • Run npm run reformat to have correctly formatted code

Testing

  • This change adds or fixes unit tests
  • Tested environment:
    • vtk.js:
    • OS:
    • Browser:

@floryst floryst requested review from finetjul and sankhesh February 25, 2025 21:27
@floryst floryst force-pushed the opengltexture-named-parameters branch 2 times, most recently from b820050 to b7fdd20 Compare February 26, 2025 18:19
@floryst
Copy link
Collaborator Author

floryst commented Feb 26, 2025

FYI @sedghi

@sedghi
Copy link
Contributor

sedghi commented Feb 26, 2025

Looks great!

Copy link
Collaborator

@sankhesh sankhesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The create* methods have enough parameters to warrant using named
parameters.

BREAKING CHANGE: the create* methods now use named parameters rather
than positional parameters.
@floryst floryst force-pushed the opengltexture-named-parameters branch from b7fdd20 to ecfb22b Compare February 27, 2025 16:56
Copy link
Member

@finetjul finetjul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

[Refactor] vtkOpenGLTexture create* methods to use named arguments
4 participants