[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] .png saving
On 10/26/07, Pete Shinners <pete@xxxxxxxxxxxx> wrote:
Pygame should be able to save from OpenGL without any changes.
Try this in an OpenGL program:
keystate = pygame.key.get_pressed()
if keystate[K_s]: #"s" is for screenshot
pygame.image.save(surface, "1.jpg")
...crashes, where:
surface = pygame.display.set_mode((screen[0], screen[1]), OPENGL|DOUBLEBUF)
Ian