mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
7cd7ca80f8
This change allows the virtual camera to really output what is in the program view, some plugin interract with this view but their changes does not appear on the virtual camera.
37 lines
643 B
C++
37 lines
643 B
C++
#pragma once
|
|
|
|
#include <obs.hpp>
|
|
#include <QDialog>
|
|
#include <memory>
|
|
|
|
#include "window-basic-vcam.hpp"
|
|
|
|
#include "ui_OBSBasicVCamConfig.h"
|
|
|
|
struct VCamConfig;
|
|
|
|
class OBSBasicVCamConfig : public QDialog {
|
|
Q_OBJECT
|
|
|
|
VCamConfig config;
|
|
|
|
bool vcamActive;
|
|
VCamOutputType activeType;
|
|
bool requireRestart;
|
|
|
|
public:
|
|
explicit OBSBasicVCamConfig(const VCamConfig &config, bool VCamActive,
|
|
QWidget *parent = 0);
|
|
|
|
private slots:
|
|
void OutputTypeChanged();
|
|
void UpdateConfig();
|
|
|
|
private:
|
|
std::unique_ptr<Ui::OBSBasicVCamConfig> ui;
|
|
|
|
signals:
|
|
void Accepted(const VCamConfig &config);
|
|
void AcceptedAndRestart(const VCamConfig &config);
|
|
};
|