[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] help with opaque images
Thanks, Im not sure how more than one viewports work (I couldnt find any
examples), so I think Im just going to draw it manually. Like
http://vamsikrishna.v.googlepages.com/powerdefender
Thanks again.
Cheers
Astan
Ian Mallett wrote:
In PyOpenGL, you'll either want to do a call to ortho, or set up
another viewport. The viewport is specified from the bottom left
corner of the screen (as opposed to the top), so if your screen is
800x600, then glViewport(700,500,100,100) sets up a 100x100 window for
you to draw in in the bottom right of the screen. In one of my
(currently unreleased) games, there is a 3D radar in the top right of
the screen done this way. I've never used ortho, though...
--
"Formulations of number theory: Complete, Consistent, Non-trivial. Choose two."
Animal Logic
http://www.animallogic.com
Please think of the environment before printing this email.
This email and any attachments may be confidential and/or privileged. If you are not the intended recipient of this email, you must not disclose or use the information contained in it. Please notify the sender immediately and delete this document if you have received it in error. We do not guarantee this email is error or virus free.