> But no. And some guy's calling me a troll. Because I said I thought > that choice of cartesian co-ordinate system used by a niche media > library was poor.
Wikipedia on Cartesian coordinates: http://en.wikipedia.org/wiki/Cartesian_coordinate_system Notice how on the graph, they have up as the positive Y direction. OpenGL is _the_ standard for graphics programming on OS X and Linux. DirectX is _the_ standard for programming on Windows, unless you want to us OpenGL there too. They both use the bottom left corner of the screen as the origin. Any other mainstream graphics library with a different coordinate system, including SDL (which pygame is built on), with the possible exception of QuickDraw or a legacy Windows API I've never heard of, uses OpenGL or DirectX to render, which means they are doing a behind- the-scenes coordinate conversion. You have two options: 1. Write a function to convert. Something like (in shorthand): convert_y_func = lambda y: main_window.height - y call it like this: pogostick.y = convert_y_func(desired_upperleft_based_y) That won't invert anything but the coordinate you pass it. 2. Use the industry standard. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
