RenderSpy 1.6.5
See the version list below for details.
dotnet add package RenderSpy --version 1.6.5
NuGet\Install-Package RenderSpy -Version 1.6.5
<PackageReference Include="RenderSpy" Version="1.6.5" />
paket add RenderSpy --version 1.6.5
#r "nuget: RenderSpy, 1.6.5"
// Install RenderSpy as a Cake Addin #addin nuget:?package=RenderSpy&version=1.6.5 // Install RenderSpy as a Cake Tool #tool nuget:?package=RenderSpy&version=1.6.5
Universal graphical and input hook for a D3D9-D3D12, OpenGL and Vulkan based games. 💠 Please leave a Star to the repository ✅ if you liked it. ✨
Samples
Sample | Description |
---|---|
Universal.FPS.Counter | A Universal FPS Counter for games |
RenderSpy.Imgui | Easily use imgui in your favorite game |
d3d11 SpriteText Render | Create a window with sharDX and render text in directx 11 using SpriteTextRenderer |
Features
Note: The objectives of the list that have: [❌] - It means I have no idea how to solve it.
It includes all the libraries you need to draw, RenderSpy after compilation joins all the dependencies using ILMerge which means it appears to offer hooks, it also offers all the libraries you need to draw your overlay.
- OpenGL.Net
- SharpDX and its Wrappers [SharpDX.Direct3D9 - SharpDX.Direct3D10 - SharpDX.Direct3D11 ... and more!!]
- MinHook.NET [For your custom hooks.]
RenderSpy when incorporating these libraries has a weight of approximately 5mb, but if you use Costura.Fody in your assembly the weight is considerably reduced to approximately 1mb.
Graphics
API | Support |
---|---|
DirectX9 | ✅ |
DirectX10 | ✅ |
DirectX11 | ✅ |
DirectX12 | ✅ |
OpenGL | ✅ |
Vulkan | ❌ I don't know how to hook it |
Inputs
- DirectInputHook ✨
- GetRawInputData
- DefWindowProc
- GetWindowLongPtr
- SetWindowLongPtr
- SetCursorPos
Example
RenderSpy.Graphics.GraphicsType GraphicsT = RenderSpy.Graphics.Detector.GetCurrentGraphicsType();
RenderSpy.Interfaces.IHook CurrentHook = null;
switch (GraphicsT)
{
case RenderSpy.Graphics.GraphicsType.d3d9:
Graphics.d3d9.Present PresentHook_9 = new Graphics.d3d9.Present();
PresentHook_9.Install();
CurrentHook = PresentHook_9;
PresentHook_9.PresentEvent += (IntPtr device, IntPtr sourceRect, IntPtr destRect, IntPtr hDestWindowOverride, IntPtr dirtyRegion) =>
{
// You Custom Code.
return PresentHook_9.Present_orig(device, sourceRect, destRect, hDestWindowOverride, dirtyRegion);
};
break;
case RenderSpy.Graphics.GraphicsType.d3d10:
Graphics.d3d10.Present PresentHook_10 = new Graphics.d3d10.Present();
PresentHook_10.Install();
CurrentHook = PresentHook_10;
PresentHook_10.PresentEvent += (swapChainPtr, syncInterval, flags) =>
{
// You Custom Code.
return PresentHook_10.Present_orig(swapChainPtr, syncInterval, flags);
};
break;
case RenderSpy.Graphics.GraphicsType.d3d11:
Graphics.d3d11.Present PresentHook_11 = new Graphics.d3d11.Present();
PresentHook_11.Install();
CurrentHook = PresentHook_11;
PresentHook_11.PresentEvent += (swapChainPtr, syncInterval, flags) =>
{
// You Custom Code.
return PresentHook_11.Present_orig(swapChainPtr, syncInterval, flags);
};
break;
case RenderSpy.Graphics.GraphicsType.d3d12:
break;
case RenderSpy.Graphics.GraphicsType.opengl:
Graphics.opengl.wglSwapBuffers glSwapBuffersHook = new Graphics.opengl.wglSwapBuffers();
glSwapBuffersHook.Install();
CurrentHook = glSwapBuffersHook;
glSwapBuffersHook.wglSwapBuffersEvent += (IntPtr hdc) =>
{
// You Custom Code.
return glSwapBuffersHook.wglSwapBuffers_orig(hdc); ;
};
break;
case RenderSpy.Graphics.GraphicsType.vulkan:
break;
default:
break;
}
// ... you more code
// Terminate.... runtines.
// Destroy Hook
// CurrentHook.Uninstall();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on RenderSpy:
Package | Downloads |
---|---|
EasyImGui
Use ImGui with Winforms / .NET Framework. |
GitHub repositories
This package is not used by any popular GitHub repositories.