I know how to use arrays to control batches of points and lines and
stuff.  But how do I control a batch of sprites with an array?

The telemetry of the sprites will be updated in a high speed shared
library via ctypes, which will write to an array of x,y coordinates,
compatible with a pyglet.graphics.vertex_list.

My specific goal is to avoid O(n) iteration of python code for about
2000 sprites, so writing a python loop to copy the position data into
the sprite objects is not fast enough, and shouldn't be necessary.

In other words, I'd like to bind a vertex_list (or any kind of flat
array) to a batch of sprites.

Thanks,

Ken

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