C# Класс ScreenshotInject.DXHookD3D10

Direct3D 10 Hook - this hooks the SwapChain.Present method to capture images
Наследование: BaseDXHook
Показать файл Открыть проект

Открытые методы

Метод Описание
Cleanup ( ) : void
DXHookD3D10 ( ScreenshotInterface ssInterface ) : System
Hook ( ) : void

Приватные методы

Метод Описание
DrawText ( Font font, System.Vector2 pos, string text, SlimDX.Color4 color ) : 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)

ResizeTargetHook ( IntPtr swapChainPtr, DXGI &newTargetParameters ) : int

Hooked to allow resizing a texture/surface that is reused. Currently not in use as we create the texture for each request to support different sizes each time (as we use DirectX to copy only the region we are after rather than the entire backbuffer)

Описание методов

Cleanup() публичный Метод

public Cleanup ( ) : void
Результат void

DXHookD3D10() публичный Метод

public DXHookD3D10 ( ScreenshotInterface ssInterface ) : System
ssInterface ScreenshotInterface
Результат System

Hook() публичный Метод

public Hook ( ) : void
Результат void