Hi,
If you are using a custom NSView and NSOpenGLContext, it shouldn't be too hard to make it work for retina, you would want to set :
| [view setWantsBestResolutionOpenGLSurface:YES];
|
Then you want to save your backing store scaling :
| NSRect bounds = [view bounds];
NSRect backingBounds = [view convertRectToBacking:bounds];
float scaleX = backingBounds.size.width/bounds.size.width;
float scaleY = backingBounds.size.height/bounds.size.height;
|
Then you can use it to adapt your opengl viewport accordingly :
| glViewport(0, 0, width*scaleX, height*scaleY);
|
That should be sufficient to benefit for the high res on retina displays (ie there should be no need to modify your rendering code)
Hope that helps !