How to show greek characters in OpenGL Topic is solved
How to show greek characters in OpenGL
How to show greek characters in glCanvas?
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
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
-
- I live to help wx-kind
- Posts: 172
- Joined: Sun Sep 07, 2008 9:49 pm
- Location: Rio de Janeiro, Brazil
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
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
I also made this : http://forums.wxwidgets.org/viewtopic.php?t=22453
"Keyboard not detected. Press F1 to continue"
-- Windows
-- Windows
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!
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
National Laboratory of Pattern Recognition;
Institute of Automation, Chinese Academy of Sciences;
Beijing University of Chemical Technology