Skip to content

Improve PoseStack.use extension method #120

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

Open
wants to merge 1 commit into
base: 5.x
Choose a base branch
from

Conversation

srcres258
Copy link

  1. Make the method inline so that return statements can be used inside the lambda passed in.

  2. Let the lambda argument accept a PoseStack object as what use extension method within the Kotlin standard library does. Also provide a non-PoseStack-object version overload of the method that invokes the original PoseStack.use method ahead.

1. Make the method inline so that `return` statements can be used inside
   the lambda passed in.

2. Let the lambda argument accept a `PoseStack` object as what `use`
   extension method within the Kotlin standard library does. Also provide
   a non-`PoseStack`-object version overload of the method that invokes
   the original `PoseStack.use` method ahead.

Signed-off-by: src_resources <[email protected]>
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