PDA

View Full Version : TextOut on the buffer OpenGL



Obiwan74
11-19-2008, 03:43 PM
hello world!
How to use the TextOut(*) function directly on the buffer OpenGL.
I want to write accurate 2D text.
thanks.

(*) TextOut(Hdc, x, y, string, lenstr)

yooyo
11-19-2008, 05:12 PM
No.. you cant use it. Do google for FTGL, GLTT, wglUseFontBitmaps, wglUseFontOutlines or roll your own text rendering classes.

_NK47
11-20-2008, 02:57 AM
http://quesoglc.sourceforge.net/

nigels
11-20-2008, 02:53 PM
http://oglft.sourceforge.net/

Obiwan74
11-20-2008, 05:12 PM
thanks for your answer.
but I do not want to use external libraries because I get 2D texts large and small low quality.
I want to use the TextOut function on the form after swapbuffers(hdc).
The text is written but disappears immediately with the refresh.
help me.
thanks.

_NK47
11-21-2008, 02:42 AM
yooyo clearly said you cant use it. so accept it and try out some other things. besides what the heck are you talking about <2D texts large and small low quality>? FTGL can use TrueType fonts because it makes use of the FreeType2 lib.