Version française
Home     About     Download     Resources     Contact us    
Browse thread
Text in OpenGL
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Vu Ngoc San <san.vu-ngoc@u...>
Subject: Re: [Caml-list] Text in OpenGL
Orlin Grigorov a écrit :
> I've been struggling with this one.  I'm developing an application, and 
> I'm using the gtkgl.area, and drawing some OpenGL renderings with 
> lablgl.  Please, any suggestions on the best way to display text?   
> Anything available already, especially some texture mapped text 
> libraries that I can use?
> 
> Thank you in advance.  Although this is my first post, I'm a very 
> frequent reader of this list!
> 
> Cheers,
> 
> Orlin
>


well it is possible to use sdl for this. There are functions for reading 
any truetype font file you have into a sdlvideo image. It actually 
directly renders any string to an image. Then you have to convert it to 
an opengl texture. It is not so difficult. Of course, since you are 
actually using gtkgl this may sound a bit circumvoluted, and there is 
probably a simpler way to do it. (?)

San