6
Có thể tạo nền của lớp OpenGL ES trong suốt để bạn có thể thấy nội dung đằng sau nội dung OpenGL ES không?Có thể tạo lớp OpenGL ES trong suốt không?
Có thể tạo nền của lớp OpenGL ES trong suốt để bạn có thể thấy nội dung đằng sau nội dung OpenGL ES không?Có thể tạo lớp OpenGL ES trong suốt không?
Bạn cần phải làm hai việc:
eaglLayer.opaque = NO;
eaglLayer.drawableProperties = [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithBool:NO], kEAGLDrawablePropertyRetainedBacking, kEAGLColorFormatRGBA8, kEAGLDrawablePropertyColorFormat, nil];
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);