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

Text additions #1037

Merged
merged 2 commits into from Jan 13, 2024
Merged

Text additions #1037

merged 2 commits into from Jan 13, 2024

Conversation

caffeinepills
Copy link
Collaborator

This adds a program argument to Text (Labels, Layouts) that lets you change the shader. Affects the whole layout.

Also adds a get_as_texture function to TextLayouts that renders text to a new texture. May be useful in cases such as text effects, using lots of the same text characters, using text in a sprite, or some other reason when you need to treat text as a single object.

caffeinepills added 2 commits January 12, 2024 17:20
@benmoran56 benmoran56 merged commit 98ad440 into pyglet:master Jan 13, 2024
12 checks passed
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.

None yet

2 participants