[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] [PyGame + PyOpenGL] Setting Target Surface
- To: pygame-users@xxxxxxxx
- Subject: [pygame] [PyGame + PyOpenGL] Setting Target Surface
- From: Mike Wyatt <mwyatt@xxxxxxxxx>
- Date: Thu, 06 Apr 2006 07:35:56 -0500
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Thu, 06 Apr 2006 08:29:27 -0400
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
I've just started playing around with Pygame w/ PyOpenGL. I'm making
good progress, but I'm having trouble figuring out how to have PyOpenGL
calls render to a surface other than the one returned by
pygame.display.set_mode(...).
By default, everything I draw with the gl***() methods is drawn directly
onto the back buffer. Calling pygame.display.flip() then flips the new
image to the screen. What I'd like to do is render multiple scenes to
seperate pygame.Surface objects, then render all the surfaces together
onto the back buffer, then flipping the final image to the screen. This
will be used for fade in/out transitions between game screens.
Any thoughts?