Is it possible to make the background of an OpenGL ES layer transparent so you can see what is behind the OpenGL ES content?
You have to do two things:
eaglLayer.opaque = NO;
eaglLayer.drawableProperties = [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithBool:NO], kEAGLDrawablePropertyRetainedBacking, kEAGLColorFormatRGBA8, kEAGLDrawablePropertyColorFormat, nil];
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
2.1m questions
2.1m answers
60 comments
57.0k users