On Thu, Aug 7, 2014 at 4:42 AM, ew <e...@kdtc.net> wrote:
>
>
> On Sunday, August 3, 2014 2:00:58 AM UTC+8, Petr Viktorin wrote:
>>
>> Hello,
>> Here is an example of rotating a line using OpenGL calls. Hopefully it
>> will work for you, and give you some keywords to look up.
>>
> Hi Petr,
>
> I just tried your python file.
>
> So it's not rotating the line actually, but rotating the view?  [the
> difference seems subtle, but quite useful.]

It is not the spoon that bends...

Well, actually it's rotating the *view matrix*. The coordinates of
every primitive (line, triangle, ...) that you send to OpenGL get
multiplied by the view and projection matrices before being drawn on
the screen.

You can think about the math as either the view/window being moved, or
as the things being drawn being moved -- it comes down to the same
thing.

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyglet-users+unsubscr...@googlegroups.com.
To post to this group, send email to pyglet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to