Following the instructions here (http://www.opengl.org/resources/faq/
technical/transformations.htm) I created the following code snippet:
# projection with one world coordinate unit equal to one screen pixel
# glMatrixMode (GL_PROJECTION); glLoadIdentity (); gluOrtho2D (0,
windowWidth, 0, windowHeight);
gl.glMatrixMode(gl.GL_PROJECTION)
gl.glLoadIdentity()
gl.gluOrtho2D(0,
window_width,
0,
window_height)
now I expected at this point to create my rectangle with my screen
width and height and it with all defaults (everything at origin) that
said rectangle would show up matching my screen.
Fail.
Sooooo, any ideas on how I can perform this bit of wizardry and end up
with a polygon that is presented the same size, pixel for pixel as my
display?
Thanks,
Jason
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---