Magpie/Runtime/GDIFrameSource.h

27 lines
438 B
C++

#pragma once
#include "pch.h"
#include "FrameSourceBase.h"
class GDIFrameSource : public FrameSourceBase {
public:
GDIFrameSource() {};
virtual ~GDIFrameSource() {}
bool Initialize() override;
UpdateState Update() override;
bool IsScreenCapture() override {
return false;
}
protected:
bool _HasRoundCornerInWin11() override {
return false;
}
private:
RECT _frameRect{};
winrt::com_ptr<IDXGISurface1> _dxgiSurface;
};