[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Re: BOUNCE pygame-users@seul.org: Non-member submission from ["DavidKeeney" <dkeeney@travelbyroad.net>]
- To: pygame-users@seul.org, dkeeney@travelbyroad.net
- Subject: [pygame] Re: BOUNCE pygame-users@seul.org: Non-member submission from ["DavidKeeney" <dkeeney@travelbyroad.net>]
- From: Pete Shinners <pete@shinners.org>
- Date: Thu, 24 Jun 2004 08:06:41 -0700
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Thu, 24 Jun 2004 11:10:32 -0400
- In-reply-to: <20040624033242.DD79233C53@moria.seul.org>
- References: <20040624033242.DD79233C53@moria.seul.org>
- Reply-to: pygame-users@seul.org
- Sender: owner-pygame-users@seul.org
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040622 Debian/1.7-1
I am looking at converting some code from GLUT to PyGame.
Does the font functionality work in OpenGL display mode, or is there
a workaround way to display text to an OpenGL display using
PyGame?
The code in question uses GLUT raster text, and would need an
alternate method of displaying text.
David, Pygame itself has nothing for fonts in opengl. The only direct
solution I can think of is to render the text, convert it to a texture,
and have opengl draw it with a textured quad.
But that can be a bit awkward, especially with the "square, powers of 2"
size restrictions.
It sounds like several opengl projects are starting to take off, has
anyone found a reasonable text solution?