mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
32 lines
594 B
C++
32 lines
594 B
C++
#pragma once
|
|
#include "pch.h"
|
|
#include "FrameSourceBase.h"
|
|
|
|
|
|
class PrintWindowFrameSource : public FrameSourceBase {
|
|
public:
|
|
PrintWindowFrameSource() {}
|
|
|
|
virtual ~PrintWindowFrameSource() {}
|
|
|
|
bool Initialize() override;
|
|
|
|
ComPtr<ID3D11Texture2D> GetOutput() override;
|
|
|
|
bool Update() override;
|
|
|
|
bool HasRoundCornerInWin11() override {
|
|
return true;
|
|
}
|
|
|
|
protected:
|
|
ComPtr<ID3D11DeviceContext> _d3dDC;
|
|
|
|
ComPtr<IDXGISurface1> _outputSurface;
|
|
ComPtr<ID3D11Texture2D> _output;
|
|
|
|
D3D11_BOX _clientRect{};
|
|
ComPtr<ID3D11Texture2D> _windowFrame;
|
|
ComPtr<IDXGISurface1> _windowFrameSurface;
|
|
};
|
|
|