On Thu, Dec 20, 2012 at 2:08 PM, Adam Bark <[email protected]> wrote: > > If that's how all other programs work on it what is the advantage of using > the native resolution? Presumably you won't be able to resolve pixels and > it will look wrong on any other screen.
No, not really. If you naively allocate an OpenGL context, it will be initialised at the 'fake' low-res, and all of your pixels will be doubled when it is composited to the screen - basically, you lose all the advantages of having a retina display. A retina-aware app needs to understand Cocoa's UI scaling, and resize its rendering to fit. A simple solution would be to call [NSOpenGLView setWantsBestResolutionOpenGLSurface:YES], and then expose the value of [NSScreen backingScaleFactor] to the pyglet application, so it can scale its drawing to suit. -- Tristam MacDonald Software Development Engineer, Amazon.com http://swiftcoder.wordpress.com/ -- 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.
