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);
1.4m articles
1.4m replys
5 comments
57.0k users