[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] help with opaque images



Have a look here:
http://pygame.org/wiki/MakeOpenglDrawIn2D

You can use that to draw using pixel coordinates in opengl, and draw in 2d.

cu,



On Fri, Apr 4, 2008 at 2:56 PM, Ian Mallett <geometrian@xxxxxxxxx> 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...
>