C# Class refw.D3D.EndSceneDetour

A DirectX 9 hook class that can be used to ínvoke callbacks during each frame or key presses.
Inheritance: IDisposable
Mostra file Open project: fry/refw

Public Properties

Property Type Description
FrameLimit int?

Public Methods

Method Description
ArtificialEndScene ( ) : void
Dispose ( ) : void
EndSceneDetour ( ) : System
GetClientRect ( ) : refw.NativeAPI.Rect?
LeftClick ( int x, int y ) : void
MoveWindow ( int x, int y, int width, int height ) : bool
SetWindowText ( string name ) : bool
SetupDetour ( string dll_name = "d3d9.dll" ) : void

Start hooking DirectX, this needs to happen during initialization before the process executes.

Private Methods

Method Description
D3D9CreateDeviceDetour ( IntPtr instance, uint adapter, uint deviceType, IntPtr focusWindow, uint behaviorFlags, NativeAPI &presentationParameters, IntPtr &returnedDeviceInterface ) : int
D3D9ResetDetour ( IntPtr instance, NativeAPI &presentationParameters ) : int
D3DCreate9Detour ( uint sdkVersion ) : IntPtr
EndSceneCallback ( IntPtr instance ) : int
WndProcDetour ( IntPtr hwnd, int msg, IntPtr wparam, IntPtr lparam ) : IntPtr

Method Details

ArtificialEndScene() public method

public ArtificialEndScene ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

EndSceneDetour() public method

public EndSceneDetour ( ) : System
return System

GetClientRect() public method

public GetClientRect ( ) : refw.NativeAPI.Rect?
return refw.NativeAPI.Rect?

LeftClick() public method

public LeftClick ( int x, int y ) : void
x int
y int
return void

MoveWindow() public method

public MoveWindow ( int x, int y, int width, int height ) : bool
x int
y int
width int
height int
return bool

SetWindowText() public method

public SetWindowText ( string name ) : bool
name string
return bool

SetupDetour() public method

Start hooking DirectX, this needs to happen during initialization before the process executes.
public SetupDetour ( string dll_name = "d3d9.dll" ) : void
dll_name string
return void

Property Details

FrameLimit public_oe property

If set, limits the frames per second to the set value.
public int? FrameLimit
return int?