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

[-- Attachment #1: Type: text/plain, Size: 1501 bytes --]

Thank you all for the suggestions.  Yes, the Smoke Vector Graphics library
looks like is extremely professional and good job.   Still, I need something
easy and small, and I thought more about the "image to texture" suggestion,
and I think I found something, which will definitely work good for my
purposes.  I decide to give it a try by going through latex, which will
produce a dvi file, then use "convert" to make it into a suitable format for
importing into an OpenGL texture.

What do you think?

On 10/7/07, Vu Ngoc San <san.vu-ngoc@ujf-grenoble.fr> wrote:
>
> 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
>
>

[-- Attachment #2: Type: text/html, Size: 1929 bytes --]

  reply	other threads:[~2007-10-07 19:08 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
2007-10-07 19:08   ` Orlin Grigorov [this message]
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=b17e12b30710071208x3b4bd070v413e6fde933fa77a@mail.gmail.com \
    --to=ogrigorov@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=san.vu-ngoc@ujf-grenoble.fr \
    /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).