Hello,
I wrote this code, after reading something similar in a python file.
glBindTexture(source.target, source.id)
pyglet.graphics.draw_indexed(2, pyglet.gl.GL_POINTS, [0, 1, 2, 3],
('v2i', (10, 15, 30, 35)))
glBindTexture(source.target, 0)
"source" is a pyglet texture, and "pyglet.graphics.draw_indexed(...)"
draw two points.
I thought it would draw two points on the texture "source" itself
instead of writing it on the "screen" (i'm not sure how it's
called...), but it doesn't.
I'm doing something wrong (maybe the idea of writing pixels on a
texture is wrong?)
Could you help me?
Thanks in advance,
Lkami
--
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.