Is there documentation on that somewhere? I searched but couldn’t find it. So in the above it says to set r.MobileContentScaleFactor=2
but you’re saying to set it to zero?
To get the iPhone 6 to be pixel for pixel in Objective-C I had to do this:
if([[UIScreen mainScreen] respondsToSelector:@selector(nativeScale)]) {
scaleFactor = [[UIScreen mainScreen] nativeScale];
nativeBounds = [[UIScreen mainScreen] nativeBounds];
width = nativeBounds.size.width / scaleFactor;
height = nativeBounds.size.height / scaleFactor;
else if([[UIScreen mainScreen] respondsToSelector:@selector(scale)]) {
scaleFactor = [[UIScreen mainScreen] scale];
width = screenRect.size.width;
height = screenRect.size.height;
}
glView = [[EAGLView alloc] initWithFrame:CGRectMake(0, 0, width, height)];
glView.contentScaleFactor = scaleFactor;