label to texture

36 views
Skip to first unread message

__doc__

unread,
Oct 28, 2008, 12:39:34 PM10/28/08
to pyglet-users
I've hacked up a little script to blit a label to a texture
http://paste.pocoo.org/show/89317/ but I just get black labels out of
it (instead of the set font color), any idea?

Alex Holkner

unread,
Oct 28, 2008, 5:10:24 PM10/28/08
to pyglet...@googlegroups.com

You need to create the texture with format GL_ALPHA, not GL_RGBA.

Alex.

__doc__

unread,
Oct 28, 2008, 6:28:18 PM10/28/08
to pyglet-users
On Oct 28, 10:10 pm, "Alex Holkner" <alex.holk...@gmail.com> wrote:
> On 10/29/08, __doc__ <pya...@gmail.com> wrote:
> You need to create the texture with format GL_ALPHA, not GL_RGBA.

Ah I see, that works! thx a lot :)
Reply all
Reply to author
Forward
0 new messages