Click to See Complete Forum and Search --> : rendering text in openGL
delta_luca
April 20th, 2006, 05:10 PM
what is the best way to go about rendering text in openGL
the text only needs to be scalable, it doesnt need to be rotated, or look fancy or anything like that, just basic coloured text.
im not that experianced in opengl but i really need to render text for a program im making.
delta_luca
April 20th, 2006, 07:16 PM
Well i cant delete, but i talked with one of my friends, and he gave me a link to a tutorial which had everything i needed on it, ive set up a little class to load fonts and for displaying them with openGL and its working fine.
Marc G
April 21st, 2006, 02:28 PM
Well, why don't you post the link to the tutorial so other people might benefit from it to?
delta_luca
April 21st, 2006, 07:20 PM
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=13
i modified the code to fit my needs creating a class to load the fonts and display them with a modified glPrint function from the tutorial with extra parameters for position and colour, but along with actually displaying bitmap text in this way for openGL, i also learnt about the stdarg stuff.
nolxev
April 24th, 2006, 08:18 AM
The best thing as you have found is write your own a text engine with a bitmap font, try to avoid the use of GDI text, it works fine but it's too slow.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.