Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoImageYet = errors.New("no image yet")
Functions ¶
This section is empty.
Types ¶
type OutputDuplicator ¶
type OutputDuplicator struct { DrawPointer bool // contains filtered or unexported fields }
func NewIDXGIOutputDuplication ¶
func NewIDXGIOutputDuplication(device *d3d11.ID3D11Device, deviceCtx *d3d11.ID3D11DeviceContext, output uint) (*OutputDuplicator, error)
NewIDXGIOutputDuplication creates a new OutputDuplicator
func (*OutputDuplicator) GetImage ¶
func (dup *OutputDuplicator) GetImage(img *image.RGBA, timeoutMs uint) error
func (*OutputDuplicator) Release ¶
func (dup *OutputDuplicator) Release()
func (*OutputDuplicator) ReleaseFrame ¶
func (dup *OutputDuplicator) ReleaseFrame()
func (*OutputDuplicator) Snapshot ¶
func (dup *OutputDuplicator) Snapshot(timeoutMs uint) (unmapFn, *dxgi.DXGI_MAPPED_RECT, *dxgi.POINT, error)
returns DXGI_FORMAT_B8G8R8A8_UNORM data
type PointerInfo ¶
type PointerInfo struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.