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

Rotate text #41

Open
luke-titley opened this issue May 11, 2020 · 0 comments
Open

Rotate text #41

luke-titley opened this issue May 11, 2020 · 0 comments

Comments

@luke-titley
Copy link

luke-titley commented May 11, 2020

Hey, wgpu_glyph is awesome. I am using it for a nodegraph UI, and it's beautiful.
I have one question though. What do you advise as the best way to rotate text?
I've found 'draw_queued_with_transform', which allows me to provide a transform matrix for the position/scale/rotation of the text I'm drawing but:

  • I have to do a 'draw_queued_with_transform' call for each peice of text that has a different rotation, whereas with positioning, i could have lots of sections, but one draw call.

I want to double check I'm not going down the wrong path.

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

No branches or pull requests

1 participant