On Sun, Jul 22, 2012 at 1:12 PM, Derek S.<[email protected]> wrote:
All of the examples / tutorials I've found deal with C++ and 3D,
and none of them seem to actually setup a matrix,
yet they all talk about how zooming/panning is accomplished by
transforming a matrix..
If you use glTranslate, glScale, etc., OpenGL hides the actual
matrices from you, so you don't have to think about them.
That's okay if all you want to do is output, but for a drawing
program you'll probably want to transform mouse locations back
into your world coordinate system, which means you'll need to
know how to do it yourself.
You should be able to find heaps of tutorial info about
using matrices for linear transformations. Here's a start:
http://en.wikipedia.org/wiki/Transformation_matrix
--
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.