caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Vu Ngoc San <san.vu-ngoc@ujf-grenoble.fr>
To: Orlin Grigorov <ogrigorov@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Text in OpenGL
Date: Sun, 07 Oct 2007 10:42:26 +0200	[thread overview]
Message-ID: <47089BF2.1040307@ujf-grenoble.fr> (raw)
In-Reply-To: <b17e12b30710062100o5ca7de92x29a0767de2be0318@mail.gmail.com>

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


  parent reply	other threads:[~2007-10-07  8:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-07  4:00 Orlin Grigorov
2007-10-07  4:29 ` [Caml-list] " Jon Harrop
2007-10-07  8:42 ` Vu Ngoc San [this message]
2007-10-07 19:08   ` Orlin Grigorov
2007-10-07 21:17     ` Chris Campbell
2007-10-07 21:59     ` Jon Harrop
2007-10-08  8:14     ` Vu Ngoc San

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47089BF2.1040307@ujf-grenoble.fr \
    --to=san.vu-ngoc@ujf-grenoble.fr \
    --cc=caml-list@yquem.inria.fr \
    --cc=ogrigorov@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).