I’m looking for a way of capturing an entire screen’s output (ie the whole ‘desktop’) as a Surface or Texture2d.
I’ve looked at the “saveImage” sample project, and it does something similar to what I’m after… but does anyone know of a way of doing the same thing (copying the window to a surface), but for the entire screen?
Yo can get a Surface from the window with:
The QuickTimeAvfWriter sample shows how to record the screen to a video.
copyWindowSurface() only copies the current window’s surface – I’m trying to copy the whole screen. Do you know if something like this is possible?
Depending on your usecase, GStreamer should work.
There are some openframeworks addons that can do this. You won’t be able to use them in Cinder, but you can check out how they work and port them.