Ah Thanks Petr! 

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. 
>
> On Sat, Aug 2, 2014 at 7:35 PM, BigD <[email protected] <javascript:>> 
> wrote: 
> > Hey ew, 
> > 
> >    As far as I know, if you want to draw a true line (ie. not a 
> > sprite.Sprite object) you will have to implement your own math routines 
> to 
> > do the necessary transformations.  You could use the euclid.py math 
> module 
> > to make it easier (it was written by the same guys who wrote pyglet, 
> google 
> > it).  You could create a line primitive that has a .rotate and 
> .translate 
> > method.  Look at the sprite.Sprite class for how groups and batches work 
> > together and how an object position can be set/ rotated 
> (._update_position) 
> > for a 2d sprite and extrapolate it needed. 
> > 
> > Denis 
> > 
> > -- 
> > 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 [email protected] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > Visit this group at http://groups.google.com/group/pyglet-users. 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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