mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
31 lines
507 B
C++
31 lines
507 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;
|
|
}
|
|
|
|
const char* GetName() const noexcept override {
|
|
return "GDI";
|
|
}
|
|
|
|
protected:
|
|
bool _HasRoundCornerInWin11() override {
|
|
return false;
|
|
}
|
|
|
|
private:
|
|
RECT _frameRect{};
|
|
winrt::com_ptr<IDXGISurface1> _dxgiSurface;
|
|
};
|