zig-gamedev
zig-gamedev copied to clipboard
Take a screenshot
I'm using zgui and would like to save a screenshot of a imgui window. How can I achieve this?
You could use your window position and size to determine the region of your frame buffer occupied by the window, copy the pixels to a buffer and write to a file but I'm not sure if this is what you are trying to do exactly. The details depend on what backend you are using.