How to show greek characters in OpenGL Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
zhvickie
Experienced Solver
Experienced Solver
Posts: 56
Joined: Fri Apr 06, 2007 1:17 pm

How to show greek characters in OpenGL

Post by zhvickie »

How to show greek characters in glCanvas?
Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria »

Were you successful showing non-greek characters?

You can use GLUT, which provides some character-drawing facilities. I have not tested Greek but French accentuated characters did work.

There's also a few OpenGL character rendering libs around, like oglft and gltt.

You can also render text on a memory DC then blit it and load it to an OpenGL texture.

You can also use the Freetype library to retrieve character information, and make an OpenGL texture out of it

For simple text it has been reported you can simply put a wxStatictext object on the canvas

Finally, you can do like many games, have a big texture with all characters in it, and display text using quads with parts of this texture
zhvickie
Experienced Solver
Experienced Solver
Posts: 56
Joined: Fri Apr 06, 2007 1:17 pm

Post by zhvickie »

No. I havn't sucessly done it.
leiradella
I live to help wx-kind
I live to help wx-kind
Posts: 172
Joined: Sun Sep 07, 2008 9:49 pm
Location: Rio de Janeiro, Brazil

Post by leiradella »

Maybe PolyFont can help you on this:

http://www.gameprogrammer.com/polyfonts/polyfonts.html

It even has a greek font!

Although it's a SDL library, I think it should be very easy to remove any SDL-specific code and leave only the OpenGL code.

Note: I've never used it.

Cheers,

Andre
Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria »

"Keyboard not detected. Press F1 to continue"
-- Windows
wwybj
Knows some wx things
Knows some wx things
Posts: 32
Joined: Mon Mar 17, 2008 9:35 am
Location: Beijing, China

Post by wwybj »

I use QuesoGLC to render characters(no matter which language) in OpenGL, that works great and simple to use. But it needs FreeType2 and Fontconfig as the dependencies. Maybe you can refer to it.

BTW, Auria's wxGLString is wonderful! I have not used yet but I think it's brilliant!
Sino-French Laboratory in Conputer Science, Automation and Applied Mathematics;
National Laboratory of Pattern Recognition;
Institute of Automation, Chinese Academy of Sciences;
Beijing University of Chemical Technology
Post Reply