C# Class ScreenshotInject.DXHookD3D11

Direct3D 11 Hook - this hooks the SwapChain.Present to take screenshots
Inheritance: BaseDXHook
Show file Open project: stani/GScreensTool

Public Methods

Method Description
Cleanup ( ) : void
DXHookD3D11 ( ScreenshotInterface ssInterface ) : System
Hook ( ) : void

Private Methods

Method Description
CopyMemory ( IntPtr Destination, IntPtr Source, uint Length ) : void
GetImageFileFormat ( String format ) : ImageFileFormat
PresentHook ( IntPtr swapChainPtr, int syncInterval, SlimDX flags ) : int

Our present hook that will grab a copy of the backbuffer when requested. Note: this supports multi-sampling (anti-aliasing)

Method Details

Cleanup() public method

public Cleanup ( ) : void
return void

DXHookD3D11() public method

public DXHookD3D11 ( ScreenshotInterface ssInterface ) : System
ssInterface ScreenshotInterface
return System

Hook() public method

public Hook ( ) : void
return void