On 6/18/08, pauljmackay <[EMAIL PROTECTED]> wrote:
>
>  Hi,
>
>  I have a need to render a Sprite as basic primitives. Is there any
>  simple way to do this? Its currently required to supply an image when
>  creating a sprite so I'm not sure if there is a means to draw a sprite
>  using primitives.

You'll need to be well-versed in OpenGL to draw the primitives; then
read up on http://pyglet.org/doc/1.1/programming_guide/graphics.html
for drawing within a batch object.  This should be enough to get you
writing your own Sprite-like classes.  I think you'll find there's
little code you can share with Sprite, unless your primitives happen
to be rectangles.

Alex.

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