Print Text to Screen
Hello, ive created a OpenGL scene with a loaded 3ds model, and id like to be able to call a function that prints text onto the screen. If written a function but the colour, the font is not customizable, and it has a white box backgroudn behind it always. If anyone could give some tips on how i could write a function that prints only the text to the screen without the white background, it would be very appreciated :D
I don't know how you are writing the text but if you are using texture mapped font, make a black texture with greyscale characters, use it as alphamap with blending and specify the color before rendering the characters.
This way: colored better looking text, higher performance
If you use bitmap fonts consider using glut.
This way: colored better looking text, higher performance
If you use bitmap fonts consider using glut.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement