| 66 | } |
| 67 | |
| 68 | void FrameCapture::renderUI(Gui* pGui) |
| 69 | { |
| 70 | if (mShowUI) |
| 71 | { |
| 72 | auto w = Gui::Window(pGui, mName.c_str(), mShowUI, {}, { 800, 400 }); |
| 73 | |
| 74 | CaptureTrigger::renderBaseUI(w); |
| 75 | |
| 76 | w.checkbox("Capture All Outputs", mCaptureAllOutputs); |
| 77 | w.tooltip("Capture all available outputs instead of the marked ones only."); |
| 78 | |
| 79 | if (w.button("Capture Current Frame")) capture(); |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | void FrameCapture::registerScriptBindings(pybind11::module& m) |
| 84 | { |