Hi, Have you tried simply drawing your polygon without changing the projection? By default, Pyglet already sets up a projection mapping one world coordinate unit to one screen pixel.
Please post a complete, minimal program. Regards, Mikael Lind 2009/9/1 sevenseeker <[email protected]>: > > 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 > > > -- Mikael Lind http://elemel.se/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
