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

Newline support in static text objects #87

Open
bluebear94 opened this issue Apr 9, 2018 · 0 comments
Open

Newline support in static text objects #87

bluebear94 opened this issue Apr 9, 2018 · 0 comments

Comments

@bluebear94
Copy link

bluebear94 commented Apr 9, 2018

I'm a bit surprised that GLUI_StaticText objects ignore newlines. Support for newlines inside static text would be helpful if you don't want to use multiple static text objects or the number of lines you need varies.

Edit: changes needed to support this:

  • versions of GLUI_Control::draw_name, GLUI_Control::draw_string and _glutBitmapString that recognise newlines
  • add methods GLUI_Control::string_dimensions and _glutBitmapDimensionsString that return both the width and height of text, recognising newlines
  • modify the GLUI_StaticText class to use these methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants