[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] help with opaque images
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] help with opaque images
- From: "Ian Mallett" <geometrian@xxxxxxxxx>
- Date: Thu, 3 Apr 2008 20:56:21 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Thu, 03 Apr 2008 23:56:27 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=0x2xHeHBD/XZx+0FuDEFoL3OANlb7Dev5MmLLKMPt/E=; b=QJ+0GejrgSmcB8moU6zhS10fMnT+NU7MNeEZxCnVKB5KQKNCd+I2nlEARA2h6BaO+1jMonP1GtK3HkT4wJSoWw++ofnd8Qxi+0HwBNtUgaacAI+huKiRzElcsWZnhy8lM+12ZGl/9uqf+GLqBQdn3esXC/qhswquNFnOXmymZCw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Q1tNOpLUdoPGDccXIScw/Hzft5lnNjj5NgR8Nua/mc4kaRxv2zeSgkUxh9RiSaNpVZAtLxc3ubtEyWT7SQEsVRWWk6W5F4ha5xLNkGM0DloZtOkLqbBhJxZRWYs9nGCuXDEHdlPB+u4nnikzLf7+SqO/l3+XmGkEHyQscsg5AVg=
- In-reply-to: <47F5A558.3050801@xxxxxxxxx>
- References: <47F5A558.3050801@xxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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...