On Mon, Feb 28, 2011 at 9:02 AM, Jonathan Hartley <[email protected]>wrote:

> If this is your intent, then I expect you might be making use of
> glViewPort to clip the portion of the 'real' window to which OpenGL
> renders, so that you can draw the contents the of each sub-window in
> turn.
>

Note that glViewport by itself doesn't perform any clipping, it merely sets
the projection-space to window-space transform. To clip to a rectangle, you
need to use glScissor (and the matching enable/disable).

See http://www.opengl.org/sdk/docs/man/xhtml/glScissor.xml

-- 
Tristam MacDonald
System Administrator, Suffolk University Math & CS Department
http://swiftcoder.wordpress.com/

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to