Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-03

bitmap fonts on lazopenglcontext

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrea Mauri

Dear all,
I am using lazopenglcontext and I need to write some characters on it. How can I do it? How can I add bitmap fonts to my openglcontext? Thanks for all suggestions,
Andrea

Reply by email

Lord Satan
to Andrea Mauri
Dear all, I am using lazopenglcontext and I need to write some characters on it. How can I do it? How can I add bitmap fonts to my openglcontext?

Do not use bitmap fonts. Create a font texture and draw alpha tested quads. This is faster, better looking and does not have the limitations of glRasterPos.

hih

Reply by email

Andrea Mauri
to Lord Satan

how can I do that?
andrea

Lord Satan ha scritto:

Show quoted text 18 lines
On Mon, 23 Mar 2009 15:25:30 +0100 Andrea Mauri wrote: > Dear all, > I am using lazopenglcontext and I need to write some characters on it. > How can I do it? > How can I add bitmap fonts to my openglcontext? > Do not use bitmap fonts. Create a font texture and draw alpha tested quads. This is faster, better looking and does not have the limitations of glRasterPos. hih _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Lord Satan
to Andrea Mauri
how can I do that?

I cannot teach you OpenGL font handling on this list as this is an OpenGL "problem" and not specific or even related to Lazarus. But you may want to take a look at this page:

http://www.opengl.org/resources/faq/technical/fonts.htm

Googling 'font texture' and 'OpenGL' will give you plenty of results, too.

hih

A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?

Reply by email