C# Class D3DTextureLogger.Main

Inheritance: EasyHook.IEntryPoint
Mostra file Open project: emist/D3DTextureLoggerClient

Public Methods

Method Description
DrawString ( int x, int y, SlimDX.Color4 color, SlimDX format, string text, SlimDX MenuFont ) : void
FindSelected ( ) : int
GetVertex ( UInt16 index, BinaryReader &VertexData ) : vertex
IsKeyPushedDown ( System vKey ) : bool
Main ( RemoteHooking InContext, String InChannelName, IntPtr addresses ) : System
RipModel ( SlimDX device, SlimDX primitiveType, int baseVertexIndex, int startIndex, int primCount ) : void
RipTriangleList ( int baseVertexIndex, int startIndex, int primCount, IndexBuffer &ib ) : void
RipTriangleStrip ( int baseVertexIndex, int startIndex, int primCount, IndexBuffer &ib ) : void
Run ( RemoteHooking InContext, String InChannelName, IntPtr addresses ) : void
Screenshot ( Device device, string filename, int primCount, int numVertices ) : void
VertContains ( vertex v ) : bool

Private Methods

Method Description
Cleanup ( ) : void
DrawIndexedPrimitivesHook ( IntPtr devicePtr, PrimitiveType primitiveType, int baseVertexIndex, int minimumVertexIndex, int numVertices, int startIndex, int primCount ) : int
DrawIndexedPrimitivesHook ( IntPtr devicePtr, SlimDX primitiveType, int baseVertexIndex, int minimumVertexIndex, int numVertices, int startIndex, int primCount ) : int
DrawRectangle ( float x, float y, float w, int h, Line MenuLine, SlimDX MenuFont, SlimDX.Color4 MenuLineColor ) : void
EndSceneHook ( IntPtr devicePtr ) : int
GetAsyncKeyState ( System vKey ) : short
GetIndex ( vertex v ) : int
ModelRecLoggerMenu ( SlimDX.Color4 FontColor, SlimDX MenuFont, Line MenuLine, SlimDX.Color4 MenuLineColor ) : void
ReadFullStream ( System stream ) : byte[]

Reads data from a stream until the end is reached. The data is returned as a byte array. An IOException is thrown if any of the underlying IO calls fail.

ResetHook ( IntPtr devicePtr, D3DPRESENT_PARAMETERS &presentParameters ) : int
ResetHook ( IntPtr devicePtr, SlimDX &presentParameters ) : int

Reset the _renderTarget so that we are sure it will have the correct presentation parameters (required to support working across changes to windowed/fullscreen or resolution changes)

SetStreamSourceHook ( IntPtr devicePtr, int stream, IntPtr vBuffer, int offsetInBytes, int Stride ) : int
VertexEquals ( vertex a, vertex b ) : bool

Method Details

DrawString() public method

public DrawString ( int x, int y, SlimDX.Color4 color, SlimDX format, string text, SlimDX MenuFont ) : void
x int
y int
color SlimDX.Color4
format SlimDX
text string
MenuFont SlimDX
return void

FindSelected() public method

public FindSelected ( ) : int
return int

GetVertex() public method

public GetVertex ( UInt16 index, BinaryReader &VertexData ) : vertex
index System.UInt16
VertexData System.IO.BinaryReader
return vertex

IsKeyPushedDown() public method

public IsKeyPushedDown ( System vKey ) : bool
vKey System
return bool

Main() public method

public Main ( RemoteHooking InContext, String InChannelName, IntPtr addresses ) : System
InContext RemoteHooking
InChannelName String
addresses System.IntPtr
return System

RipModel() public method

public RipModel ( SlimDX device, SlimDX primitiveType, int baseVertexIndex, int startIndex, int primCount ) : void
device SlimDX
primitiveType SlimDX
baseVertexIndex int
startIndex int
primCount int
return void

RipTriangleList() public method

public RipTriangleList ( int baseVertexIndex, int startIndex, int primCount, IndexBuffer &ib ) : void
baseVertexIndex int
startIndex int
primCount int
ib IndexBuffer
return void

RipTriangleStrip() public method

public RipTriangleStrip ( int baseVertexIndex, int startIndex, int primCount, IndexBuffer &ib ) : void
baseVertexIndex int
startIndex int
primCount int
ib IndexBuffer
return void

Run() public method

public Run ( RemoteHooking InContext, String InChannelName, IntPtr addresses ) : void
InContext RemoteHooking
InChannelName String
addresses System.IntPtr
return void

Screenshot() public method

public Screenshot ( Device device, string filename, int primCount, int numVertices ) : void
device Device
filename string
primCount int
numVertices int
return void

VertContains() public method

public VertContains ( vertex v ) : bool
v vertex
return bool