[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Multisample in pygame



I'm running this on a powerbook running 10.3.
Previous messages on the sdl list make me think that multisampling not enabled on macs. (as those were from 2002/2003, I thought that was fixed).
I'm using Bob Ippolito's pygame package including his SDL patches http://pythonmac.org/packages/.


As far as I can tell this works on linux. (oddly enough the glut version doesn't work, but I think that's some sort of weird older pyopengl problem).

I guess I should resort to searching through SDL code?

Mark

On May 18, 2005, at 11:01 AM, Mark Halko wrote:

Hi

In the somewhat lacking documentation, there apparently is a hint that I may be able use multisampling by setting the gl attributes:

pygame.display.gl_set_attribute(pygame.locals.GL_MULTISAMPLEBUFFERS,1)

However, when I do that, nothing happens. Is there some other way to enable multisampling support?
I know my hardware supports it, as GLUT will give me a buffer and 2 samples.


attached is two sets of code for opening a window that supports multisampling in pygame and glut (edited Nehe code).

Mark

<test_multisample_glut.py><test_multisample_pygame.py>