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

how to change the text background color? #7

Open
zhl8223 opened this issue Aug 24, 2020 · 1 comment
Open

how to change the text background color? #7

zhl8223 opened this issue Aug 24, 2020 · 1 comment
Labels

Comments

@zhl8223
Copy link

zhl8223 commented Aug 24, 2020

No description provided.

@vallentin
Copy link
Owner

Do you mean as in drawing a colored rectangle behind the text? If so, then the library itself does not support that (yet?).

Instead you'd have to "manually", issue the needed draw calls to draw a rectangle behind the text beforehand. You can use the functions gltGetTextWidth and gltGetTextHeight to query the bounds of the text, for the rectangle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants