> Do you have any idea why this works:
>

Nevermind. I was assuming since I was calling glVertex3f instead of
glVertex3i that I had to use 0.0 - 1.0 instead of pixel coords. This
works:

glEnable(self.tileAtlas.texture.target)
glBindTexture(self.tileAtlas.texture.target,
self.tileAtlas.texture.id)
glBegin(GL_QUADS)
glTexCoord2f(0.0, 0.0)
glVertex3f(0.0,0.0, 0.0)
glTexCoord2f(1.0, 0.0)
glVertex3f(1024.0, 0.0, 0.0)
glTexCoord2f(1.0 ,1.0)
glVertex3f(1024.0, 1024.0, 0.0)
glTexCoord2f(0.0, 1.0)
glVertex3f(0.0, 1024.0, 0.0)
glEnd()

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