Mac OS X Lion seams disable OpenGL screen. So, glReadPixel can’t get screen shot.
The solution to grab the screen:
CGImageRef image = CGDisplayCreateImage(kCGDirectMainDisplay);
Archive for 2011 年 12 月
Grab Screen from Mac OS X Lion(10.7)
發文作者 cotton5415 於 十二月 29, 2011
發表於 MAC OS X's Road | 已加上的標籤: 10.7 capture, 10.7 grab, cotton5415 10.7 capture, cotton5415 10.7 screen capture, cotton5415 lion, cotton5415 Lion capture, cotton5415 Mac OS X, grab, Lion capture, Lion grab, Mac OS X capture. | 張貼留言 »