Hacker News new | ask | show | jobs
by sunk1st 551 days ago
Can this be done on Mac OS?
1 comments

Only before 10.7 from userspace with CGDisplayBaseAddress

https://developer.apple.com/library/archive/documentation/Gr...

After 10.7 (and certainly post-Metal) I don't think the framebuffer is accessible via userspace, you'd probably need to create a kernel extension to expose it somehow.

Although windowserver must write to the framebuffer somehow so there's probably a private API as well