hi everyone, i'm new to python and pyglet, so that's maybe the reason
i must be missing something.
here's the problem, i got no transluency (alpha=1), although using
glColor4f with floats that print between 0 and 1
here's my gl context init:
screen =
window.get_platform().get_default_display().get_default_screen()
template =
gl.Config(alpha_size=8,sample_buffers=1,samples=4,double_buffer=True)
try:
config = screen.get_best_config(template)
except window.NoSuchConfigException:
print "window.NoSuchConfigException"
template = gl.Config()
config = screen.get_best_config(template)
window.Window.__init__(self,config=config,visible=False,caption=self.pcaption)
the hardware can't be the cause of the problem as i have transluency
in other openGl apps.
here's an example of a painting call i thought would work:
gl.glBegin(gl.GL_QUADS)
gl.glColor4f(r/255.0,g/255.0,b/255.0,a/255.0)
gl.glVertex2f(0,0)
gl.glVertex2f(self.width,0)
gl.glVertex2f(self.width,self.height)
gl.glVertex2f(0,self.height)
gl.glEnd()
thanks for the help = )
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---