B W wrote:
is there a way in OpenGL to query what view you are in?

Well, you can read back the projection matrix, and then you
could examine it to figure out whether it looks more like a
perspective or orthographic projection. (OpenGL doesn't really
have any idea about kinds of projection -- they're just different
ways of setting up the matrix.)

But this is likely to be slower than just re-setting it to
whatever you want, because it requires a round-trip from the
graphics system and messes up the pipelining. The same goes
for any other state -- save/set/restore is probably faster
than trying to query it.

--
Greg

--
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