i can't seem to get pyglet to draw me a semi transparent panel :(

class InterfacePanel( DrawnElement ):
        def __init__( self, x=0, y=0, x2=32, y2=32, z=30000, colour=( 200,
200, 200 )):
                super( InterfacePanel, self ).__init__( z=z )

                self.colour = colour
                self.x, self.y, self.x2, self.y2 = x, y, x2, y2
                self.updateVertexList()

        def draw( self ):
                self.vertexList.draw( pyglet.gl.GL_QUADS )

        def updateVertexList( self ):
                r = self.colour[0]
                g = self.colour[1]
                b = self.colour[2]
                a = 64
                self.vertexList = pyglet.graphics.vertex_list( 4,
                        ('v2i', (       self.x, self.y,
                                        self.x, self.y2,
                                        self.x2, self.y2,
                                        self.x2, self.y )),
                        ('c4B', ( r, g, b, a ) * 4 )
                )

can anyone help me out here? i'm a bit stumped

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to