[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] PyGame OpenGL Blitting
- To: pygame-users <pygame-users@xxxxxxxx>
- Subject: [pygame] PyGame OpenGL Blitting
- From: Ian Mallett <geometrian@xxxxxxxxx>
- Date: Tue, 13 Jul 2010 23:26:00 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Wed, 14 Jul 2010 02:26:06 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=ITED3hV4mkXGCYb0WQLYS2nRLxq+JumoBDMapiTa0bc=; b=h5SzEYPhMnHavsNk5EjkodPOHOReuk1g2QJPmkH39E5+zInAee6/R8CFqEgUwTLEp3 BXrDz4fZEXV52Pf60T4q46+4h0tWGnTgUCZ1OwzBQ6TaUaPynG/M4wKhAhCEIhHs4xxt gm0920oJSzs3/uXudvo74x6PKAhYGvQbv9P6M=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Flt85yiGWcajtp0pGiwrMOaxjRZbyVqPBLTroMIF36+Y0YVIrKdqSds89ywqOi9iWM sV6wOFgH3iDY19UQugIAaZcYZBQ6LRFfOU0haXy7rYL2sHTY2/eMM4Q/EhvHkhihF43Q 7UVBPjGYk3iKkFgDPjrjp7SXtj0GJekRlS6Kc=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hi,
I've been looking at C++ and SDL, and I noticed that in SDL_SetVideoMode(...) (which I assume corresponds to pygame.display.set_mode(...)), the flag list allows SDL_OPENGL, (which I assume corresponds to pygame.OPENGL). However, I also noticed the flag SDL_OPENGLBLIT, which would seem to set up a windowing environment to allow normal SDL blitting operations to work on an OpenGL context.
Now, I'm new to both SDL in C++, as well as C++ itself, and I've never seen much source of PyGame, but it seems to me like this flag would let PyGame drawing operations work on OpenGL canvases? Is this not the case, or is there something I don't know about?
Just curious. Thanks,
Ian