mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-07 16:30:00 +01:00
Early testing of video Recorder
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
#include <algorithm>
|
||||
#include <map>
|
||||
|
||||
using namespace std;
|
||||
|
||||
// ImGui
|
||||
#include "imgui.h"
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
@@ -288,6 +290,10 @@ void UserInterface::handleKeyboard()
|
||||
// select all
|
||||
Mixer::manager().view()->selectAll();
|
||||
}
|
||||
else if (ImGui::IsKeyPressed( GLFW_KEY_R )) {
|
||||
// toggle recording
|
||||
Mixer::manager().session()->addRecorder(new H264Recorder);
|
||||
}
|
||||
|
||||
}
|
||||
// No CTRL modifier
|
||||
@@ -865,7 +871,7 @@ void UserInterface::RenderPreview()
|
||||
Rendering::manager().outputWindow().show();
|
||||
|
||||
if ( ImGui::MenuItem( ICON_FA_CAMERA_RETRO " Save frame") )
|
||||
Mixer::manager().session()->addRecorder(new FrameRecorder);
|
||||
Mixer::manager().session()->addRecorder(new PNGRecorder);
|
||||
|
||||
if ( ImGui::MenuItem( ICON_FA_TIMES " Close") )
|
||||
Settings::application.widget.preview = false;
|
||||
|
||||
Reference in New Issue
Block a user