Ios 8 opengl es 1.1 discontinued?

We are going to launch the title in the iOS appstore, and we recently discovered that it does not work on iOS 8. The game loads on a black screen, however everything else works in order to work (the music can be heard, it responds to the touch screen, just nothing is displayed )

Our engine is quite old and uses OpenGL ES 1.1. I am now convinced that this is a problem since I tried another (old) tutorial that displays a black screen.

I looked online for any discussion about this, but it seems I did not find anything. Does anyone have 1.1 applications there that they can confirm, either stopped working or are working?

Now I am considering the task of updating the engine to 2.0, which is important, given the size of the project and the fact that we should start very soon. It would be unreasonable for Apple to simply give up support 1.1 without saying anything, so I hope I'm wrong about that.

+4
source share
3 answers

I had the same problem. The fix was - DO NOT addSubview

//[self.window addSubview:glView]; // this produces black screen on ios8 devices

[self setView: glView];

Another trick in ios8 is that for a landscape application this code

const CGRect r = [[UIScreen mainScreen] bounds];

returns the screen size in landscape orientation. For iOS <8, it was always the size of a portrait screen. So now I use max (x, y) for X and min (x, y) for Y.

+2
source

Well, I have made some progress. In response to my question, OpenGL ES 1.1 does NOT stop.

, IOS 8, , , - . , GL Viewcontroller , , .

, , 1.1 , .

+1

, , CGFloats GLfloats ( CGPoints, CGFloats.) OpenGLES 1.1 2.0, .

The problem was that OpenGL was that CGfloats is a typedef for float on 32-bit devices, while they are dual on 64-bit devices. GLfloats are designed specifically for this purpose to solve this problem. GLKVector2 is also provided by Apple to solve this problem between 32-bit and 64-bit devices.

+1
source

All Articles