Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (5.6k points)
I want to draw text to the screen, how can I do this? Is there any method in OpenGL that prints text to screen?

1 Answer

0 votes
by (12.4k points)

There is no method in OpenGL to draw text to screen. Rather you can use the library or create your own calls to draw text to the screen. There are two common calls within GLUT that could help you 

glutBitmapString() and glutStrokeString()

Or you can even create a method or function that draws character text to screen using standard OpenGL function, or use Stencil buffer using calls to gIDrawPixels() to get the characters. For more read here.

Want to start with AWS? Come and join: AWS Online training

Related questions

0 votes
1 answer

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
asked Oct 19, 2019 in DevOps and Agile by chandra (29.3k points)
0 votes
1 answer
0 votes
1 answer

Browse Categories

...