|
MT Showcase SDK
|
Class that provides the framebuffer where the content can be written and provides the task for saving the result. More...
#include <SnapshotCapture.hpp>
Class that provides the framebuffer where the content can be written and provides the task for saving the result.
Also holds the state of the capture. Rendering to the framebuffer is done inside the snapshottable's render methods. This class only provides the tools for the capture.
this hierarchy still could be better.. Best interface would be to provide a class that takes widget as argument and just takes the snapshot without requiring any modification to the internals of the widget being captured. This however would require a RenderContext for the capturing class.