From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 47965BC6B for ; Sun, 7 Oct 2007 10:43:41 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAKc5CEeYTQLKh2dsb2JhbACOOAEBAQgKKQ X-IronPort-AV: E=Sophos;i="4.21,240,1188770400"; d="scan'208";a="2245853" Received: from amazone2.ujf-grenoble.fr ([152.77.2.202]) by mail1-smtp-roc.national.inria.fr with ESMTP; 07 Oct 2007 10:43:41 +0200 Received: from tana2.ujf-grenoble.fr (tana2.ujf-grenoble.fr [152.77.24.22]) by amazone2.ujf-grenoble.fr (8.13.7/8.13.7/Configured by JE 21 07 2006) with ESMTP id l978haVv042518; Sun, 7 Oct 2007 10:43:36 +0200 (CEST) Received: from localhost (unknown [127.0.0.1]) by tana2.ujf-grenoble.fr (Postfix) with ESMTP id 13BA795840; Sun, 7 Oct 2007 10:43:36 +0200 (CEST) X-UJF-Scanned: Scanned on tana2.ujf-grenoble.fr Received: from tibre1.ujf-grenoble.fr (tibre1.ujf-grenoble.fr [152.77.18.86]) by tana2.ujf-grenoble.fr (Postfix) with ESMTP id D539D95836; Sun, 7 Oct 2007 10:43:35 +0200 (CEST) Received: from fourier.ujf-grenoble.fr (fourier.ujf-grenoble.fr [193.54.241.15]) by tibre1.ujf-grenoble.fr (8.14.1/8.14.1) with ESMTP id l978hZWB061820; Sun, 7 Oct 2007 10:43:35 +0200 (CEST) (envelope-from san.vu-ngoc@ujf-grenoble.fr) Received: from localhost (localhost.localdomain [127.0.0.1]) by fourier.ujf-grenoble.fr (Postfix) with ESMTP id 872CA4F93B; Sun, 7 Oct 2007 10:43:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at fourier.ujf-grenoble.fr Received: from fourier.ujf-grenoble.fr ([127.0.0.1]) by localhost (fourier.ujf-grenoble.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0Lwn3OfGlhd7; Sun, 7 Oct 2007 10:43:35 +0200 (CEST) Received: from [127.0.0.1] (malherbe.ujf-grenoble.fr [193.54.241.13]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by fourier.ujf-grenoble.fr (Postfix) with ESMTP id 9FBB44F924; Sun, 7 Oct 2007 10:43:14 +0200 (CEST) Message-ID: <47089BF2.1040307@ujf-grenoble.fr> Date: Sun, 07 Oct 2007 10:42:26 +0200 From: Vu Ngoc San User-Agent: Mozilla-Thunderbird 2.0.0.4 (X11/20070828) MIME-Version: 1.0 To: Orlin Grigorov Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Text in OpenGL References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam: no; 0.00; lablgl:01 cheers:01 sdlvideo:01 renders:01 caml-list:01 functions:01 font:97 string:02 opengl:03 opengl:03 simpler:05 ecrit:06 probably:07 suggestions:07 i'm:09 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